AI Hints
Home›CI/CD with GitHub Actions Tutorial›Debugging, Speed, and Cost
CI/CD with GitHub Actions · Lesson 114 of 138

Cost and Minutes

Paying for CI.

⏱ 2 min read▶ Video at 2:12:59🎓 Free
Watch this lesson in the CI/CD with GitHub Actions courseWatch on YouTube ↗Full CI/CD with GitHub Actions course

GitHub Actions is free for public repositories, on standard runners. Private repositories get a monthly allowance of free minutes, depending on the plan. After that, you pay per minute.

Cost and Minutes
From the video: Cost and Minutes
  • Free for public repos
  • Free minutes for private
  • Then pay per minute

Runner multipliers

Not all minutes cost the same. For private repositories, a Linux minute counts as one. Windows counts as two. And mac OS counts as ten. So a ten minute mac OS job uses a hundred minutes of the allowance.

RunnerCounts as
Linux1 minute
Windows2 minutes
macOS10 minutes
Larger runnersmore

Keeping costs down

Run most jobs on Linux, and use mac OS only for what needs it, like building an iPhone app. Set timeouts, so a stuck job doesn't run for six hours. Keep artifacts for fewer days, because storage counts too. And check the usage page in the billing settings now and then.

keyvalue
Linux firstcheapest
timeout-minutesno stuck jobs
retention-daysless storage
Usage pagecheck it

Summary

Public repositories are free, private ones have an allowance, and mac OS minutes count ten times. Next, sharing workflows across a whole organization.

Key takeaways
  • Linux ×1
  • Windows ×2
  • macOS ×10
Next up: Workflow Templates — starter workflows