Teams complain CI is slow because jobs wait for a GitHub-hosted runner with Docker-in-Docker and large resources.
AdvancedScenarioGitHub Actions
Answer
Situation read → Standard runners are too small or queues are long.
What I'd do →
- Use larger GitHub-hosted runners for heavy jobs or self-hosted ARC runners with right-sized pods.
- Cache Docker layers via
cache-to: type=ghaor a registry cache, and build with BuildKit. - Split the pipeline so only the heavy job takes the big runner.
Why → Right-sizing is cheaper than putting everything on big machines.
Interview tip → Measure first: look at job timing graphs.
More on GitHub Actions
What are workflows, jobs, steps and actions in GitHub Actions?BeginnerWhat events can trigger a workflow?BeginnerWhat is the difference between `pull_request` and `pull_request_target`?AdvancedWhat is a runner, and how do GitHub-hosted and self-hosted runners differ?BeginnerHow do you pass data between steps and between jobs?IntermediateHow does a build matrix work?Intermediate