Skip to main content
GitHub uses a pay-as-you-go metered billing model for many usage-based services (for example, Actions minutes, Codespaces, and Packages). Some offerings—such as GitHub Copilot and Enterprise licenses—are typically billed per-seat or via subscriptions rather than by metered usage. Other features (for example, Actions, Packages, Codespaces, Git LFS, and certain Advanced Security features) are usage-based and will appear in metered reports. In this lesson we create a simple GitHub Actions workflow and compare how identical workloads are billed across three hosted runner types: Linux, Windows, and macOS. I’m working in the dev2 account inside the Game Dev Studio organization and will import a new repository into that organization. The repository will be public and named gh-actions. (You could also choose Internal visibility so only enterprise members can see it.)
A dark‑themed screenshot of GitHub’s "Import repository" page showing fields for the source URL, credentials, and new repository details with owner set to "game-devstudio" and repository name "gh-actions." The visibility options (Public, Internal, Private) are visible and a "Preparing import..." button is shown at the bottom.
Once the import finishes, the repo already contains a workflow that runs the same job on three different runners: Ubuntu (Linux), Windows, and macOS. This makes it straightforward to compare cost for identical wall-clock workloads across runner types. Open the repository and navigate to the .github/workflows directory. You should see the workflow file cross-platform-runs.yml.
A dark-themed GitHub repository page showing the .github/workflows directory with files like CODEOWNERS and cross-platform-runs.yml listed. The left file browser, branch selector (main) and recent commit messages are also visible.
The workflow below runs three jobs in parallel — one per OS — and each job performs a small sleep to simulate identical work and duration:
What this workflow does:
  • Triggers: push events and workflow_dispatch (manual trigger via the Actions UI).
  • Jobs: run-linux, run-windows, and run-macos, each using a different runs-on hosted runner.
  • Workload: a single step that echoes a line then sleeps for 60 seconds to produce roughly the same wall-clock run time on each runner. That parity makes it easier to compare billed units.
Before running the workflow, ensure Actions are enabled for the repository (Organization or repo-level settings may block runs). With workflow_dispatch, you can manually start the workflow from the Actions tab and watch the three jobs execute in parallel. A snippet of the Linux job log looks like this:
After the run completes, inspect consumed Actions minutes/units from the enterprise admin billing view. I navigated to the enterprise Billing and Licensing page (admin account) to view metered usage. The top-level metered usage showed a small gross amount (the demo here is roughly $0.16). Note that trial enterprises can show special values such as “estimated next payout” as zero — trial status affects how totals are displayed, but individual usage entries still appear. Scroll to the Actions billing section and click through to the Usage / Metered usage report. The report groups usage by SKU and shows units consumed, price per unit, and the billed amount per SKU. In this example:
  • The Linux job produced a very small charge (for example, ~$0.006).
  • The Windows job cost roughly 2× the Linux run.
  • The macOS runner cost around 10× the Linux run.
A screenshot of a GitHub billing/usage page showing an August cost graph (with a small spike around Aug 23) and a usage breakdown table listing GitHub Actions SKUs (Actions Linux, macOS, Windows) with units, price/unit and billed amounts.
You can download detailed or summarized billing reports from the usage page. Report generation can take several minutes (or longer for large datasets); GitHub can email the report when it’s ready. Summary table — typical runner differences (example values) Cost optimization tips
  • Prefer Linux self-hosted or GitHub-hosted runners for high-volume, non-OS-specific workloads.
  • Reserve Windows and macOS hosted runners for builds/tests that require those environments.
  • Combine caching, artifact reuse, and job matrix strategies to reduce total run time and billable minutes.
  • Use scheduled or manual runs only when needed to avoid unnecessary billed minutes.
Note: Actions was used here as a concrete example, but the enterprise metered usage view covers multiple products beyond Actions—Codespaces, Advanced Security features, Git LFS, Packages, and others—so you can analyze billing across all metered features in one place.
Hosted runner costs vary significantly by OS and underlying hardware. When optimizing for spend, prefer Linux runners for high-volume CI; use Windows or macOS runners only when the workload requires those specific environments.
Links and references

Watch Video

Practice Lab