<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: oiwdis</title>
    <description>The latest articles on DEV Community by oiwdis (@oiwdis).</description>
    <link>https://dev.to/oiwdis</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4273289%2F6de6b2b4-9370-42f0-905d-fab5c300c022.png</url>
      <title>DEV Community: oiwdis</title>
      <link>https://dev.to/oiwdis</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oiwdis"/>
    <language>en</language>
    <item>
      <title>Your macOS CI job costs 10x your Linux job. Put the number on the PR.</title>
      <dc:creator>oiwdis</dc:creator>
      <pubDate>Mon, 30 Nov 2026 04:10:20 +0000</pubDate>
      <link>https://dev.to/oiwdis/your-macos-ci-job-costs-10x-your-linux-job-put-the-number-on-the-pr-2lk1</link>
      <guid>https://dev.to/oiwdis/your-macos-ci-job-costs-10x-your-linux-job-put-the-number-on-the-pr-2lk1</guid>
      <description>&lt;p&gt;GitHub Actions bills per minute, rounded up per job, and the rate depends heavily on the runner. Here are the list prices for private repos (GitHub's pricing page, Nov 2026):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Runner&lt;/th&gt;
&lt;th&gt;$/min&lt;/th&gt;
&lt;th&gt;vs Linux 2-core&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Linux 2-core (&lt;code&gt;ubuntu-latest&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;$0.006&lt;/td&gt;
&lt;td&gt;1x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Linux 2-core arm64&lt;/td&gt;
&lt;td&gt;$0.005&lt;/td&gt;
&lt;td&gt;0.8x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows 2-core (&lt;code&gt;windows-latest&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;$0.010&lt;/td&gt;
&lt;td&gt;~1.7x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;macOS 3/4-core (&lt;code&gt;macos-latest&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;$0.062&lt;/td&gt;
&lt;td&gt;~10x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;macOS 5-core M2 Pro (xlarge)&lt;/td&gt;
&lt;td&gt;$0.102&lt;/td&gt;
&lt;td&gt;17x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Linux 16-core (larger)&lt;/td&gt;
&lt;td&gt;$0.042&lt;/td&gt;
&lt;td&gt;7x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Linux 64-core (larger)&lt;/td&gt;
&lt;td&gt;$0.162&lt;/td&gt;
&lt;td&gt;27x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows 64-core (larger)&lt;/td&gt;
&lt;td&gt;$0.322&lt;/td&gt;
&lt;td&gt;~54x&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two details catch people:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Rounding is per job.&lt;/strong&gt; A 10-job matrix where every job takes 20 seconds bills 10 minutes, not 3.3.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Larger runners are billed on public repos too.&lt;/strong&gt; Only &lt;em&gt;standard&lt;/em&gt; runners are free for public repositories.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  What one PR actually costs
&lt;/h3&gt;

&lt;p&gt;Take an ordinary iOS + backend repo:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;test-ios&lt;/code&gt; on &lt;code&gt;macos-latest&lt;/code&gt;: 14 min → 14 × $0.062 = &lt;strong&gt;$0.87&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;test-api&lt;/code&gt; matrix (3 Node versions) on &lt;code&gt;ubuntu-latest&lt;/code&gt;: 3 × 6 min → 18 × $0.006 = &lt;strong&gt;$0.11&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;lint&lt;/code&gt; on &lt;code&gt;ubuntu-latest&lt;/code&gt;: 1 min → &lt;strong&gt;$0.006&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's about $0.98 per push. A PR that takes 6 pushes (normal with review fixes, and low if an agent is iterating) costs &lt;strong&gt;about $5.90&lt;/strong&gt;. At 40 PRs a week, that's about $1,000 a month, and &lt;strong&gt;~88% of it is the one macOS job.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;None of that shows up anywhere a developer looks. The billing page is monthly, org-wide, and usually only an admin can see it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why showing it on the PR changes behavior
&lt;/h3&gt;

&lt;p&gt;Developers already react to what's in the PR: failing checks, coverage drops, bundle-size diffs. Cost works the same way. When the PR says "this PR: $5.90, +$4.10 vs main, most expensive job: test-ios $0.87/run", the fixes are obvious and cheap:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;paths:&lt;/code&gt; filters so docs-only PRs skip the macOS job&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;concurrency: { group: ${{ github.workflow }}-${{ github.ref }}, cancel-in-progress: true }&lt;/code&gt; so stale pushes stop billing&lt;/li&gt;
&lt;li&gt;moving non-Apple steps (lint, unit tests, codegen) off macOS onto Linux&lt;/li&gt;
&lt;li&gt;collapsing tiny matrix jobs that each eat a rounded-up minute&lt;/li&gt;
&lt;li&gt;caching the dependency install that's 4 of the 14 macOS minutes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these need a platform team. They need someone to notice, and a number on the PR is how they notice.&lt;/p&gt;

&lt;h3&gt;
  
  
  How I'm doing it
&lt;/h3&gt;

&lt;p&gt;I built &lt;a href="https://prcost.pages.dev" rel="noopener noreferrer"&gt;PRCost&lt;/a&gt;, a GitHub App that listens for &lt;code&gt;workflow_run&lt;/code&gt;, reads job start and finish times from the Actions jobs API, rounds each up to the minute, multiplies by the runner's list price, and keeps one comment on the PR updated. It's free for one repo. Here's a &lt;a href="https://github.com/oiwdis/prcost-demo/pull/1" rel="noopener noreferrer"&gt;live example&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you'd rather DIY, the same math is about 40 lines in a workflow step with &lt;code&gt;gh api repos/{owner}/{repo}/actions/runs/{id}/jobs&lt;/code&gt;. The point is the number, not the tool.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Note: the example numbers are illustrative math from the published rates, not a customer's bill.&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>github</category>
      <category>devops</category>
      <category>ci</category>
      <category>githubactions</category>
    </item>
  </channel>
</rss>
