Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

What GitHub Actions Actually Costs When It’s “Free”

说明与用途

团队了解 GitHub Actions 的分钟计费方式,并优化流水线以避免意外费用。

问题

Teams unknowingly exceed free minute limits on GitHub Actions, leading to unexpected overage charges.

结果

Teams can prevent unexpected overage charges by accurately accounting for minute usage, understanding platform multipliers, and optimizing workflows.

工作流

  • 1. Review GitHub Actions free tier limits for the chosen plan.
  • 2. Identify all jobs, matrix dimensions, and runner platforms in the workflow YAML.
  • 3. Calculate minute usage: multiply job duration by platform multiplier (Linux 1×, Windows 2×, macOS 10×).
  • 4. Round each job up to the next full minute.
  • 5. Sum minutes across all jobs, including re-runs and matrix jobs.
  • 6. Compare total to the plan’s monthly allowance.
  • 7. Optimize: reduce matrix size, split long jobs, use self-hosted runners for expensive platforms, or upgrade plan if needed.
  • 8. Monitor usage via GitHub’s billing dashboard and set alerts.

证据

GitHub bills Linux jobs at a 1x multiplier, Windows at 2x, and macOS at 10x against the same pool.

来源

A 10-minute macOS build doesn’t cost 10 minutes of your allowance — it costs 100.

来源

  • 记录日期: 2026-09-22T04:15:43.462Z