Skip to content

Commit 107ca63

Browse files
authored
ci: pin release runners per target (anomalyco#929)
1 parent 2386e59 commit 107ca63

2 files changed

Lines changed: 32 additions & 32 deletions

File tree

‎.github/workflows/prerelease.yml‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ jobs:
7575
publish-tauri:
7676
name: Build + Publish (${{ matrix.target }})
7777
needs: prepare-release
78-
# Set OPENWORK_LINUX_X64_RUNNER_LABEL to route Linux release builds to a larger runner.
79-
runs-on: ${{ matrix.os_type == 'linux' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL != '' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL || matrix.platform }}
78+
# Use explicit per-target runner labels so each release build can scale independently.
79+
runs-on: ${{ matrix.runs_on }}
8080
timeout-minutes: 360
8181

8282
env:
@@ -91,36 +91,36 @@ jobs:
9191
fail-fast: false
9292
matrix:
9393
include:
94-
- platform: macos-14
95-
os_type: macos
94+
- os_type: macos
9695
target: aarch64-apple-darwin
96+
runs_on: macos-latest
9797
args: "--target aarch64-apple-darwin --bundles dmg,app"
98-
- platform: macos-14
99-
os_type: macos
98+
- os_type: macos
10099
target: x86_64-apple-darwin
100+
runs_on: macos-26-intel
101101
args: "--target x86_64-apple-darwin --bundles dmg,app"
102-
- platform: ubuntu-22.04
103-
os_type: linux
102+
- os_type: linux
104103
target: x86_64-unknown-linux-gnu
104+
runs_on: blacksmith-4vcpu-ubuntu-2404
105105
args: "--target x86_64-unknown-linux-gnu --bundles deb,rpm"
106-
- platform: ubuntu-22.04-arm
107-
os_type: linux
106+
- os_type: linux
108107
target: aarch64-unknown-linux-gnu
108+
runs_on: blacksmith-4vcpu-ubuntu-2404-arm
109109
args: "--target aarch64-unknown-linux-gnu --bundles deb,rpm"
110-
- platform: windows-2022
111-
os_type: windows
110+
- os_type: windows
112111
target: x86_64-pc-windows-msvc
112+
runs_on: blacksmith-4vcpu-windows-2025
113113
args: "--target x86_64-pc-windows-msvc --bundles msi"
114114

115115
steps:
116116
- name: Log runner selection
117117
shell: bash
118118
run: |
119-
echo "Requested larger runner label: ${RUNNER_LABEL:-<unset>}"
120-
echo "Effective runs-on: ${EFFECTIVE_RUNS_ON}"
119+
echo "Configured runs-on: ${RUNS_ON}"
120+
echo "Build target: ${TARGET}"
121121
env:
122-
RUNNER_LABEL: ${{ vars.OPENWORK_LINUX_X64_RUNNER_LABEL }}
123-
EFFECTIVE_RUNS_ON: ${{ matrix.os_type == 'linux' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL != '' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL || matrix.platform }}
122+
RUNS_ON: ${{ matrix.runs_on }}
123+
TARGET: ${{ matrix.target }}
124124

125125
- name: Checkout
126126
uses: actions/checkout@v4

‎.github/workflows/release-macos-aarch64.yml‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ jobs:
228228
name: Build + Publish (${{ matrix.target }})
229229
needs: [resolve-release, verify-release]
230230
if: needs.resolve-release.outputs.build_tauri == 'true'
231-
# Set OPENWORK_LINUX_X64_RUNNER_LABEL to route Linux release builds to a larger runner.
232-
runs-on: ${{ matrix.os_type == 'linux' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL != '' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL || matrix.platform }}
231+
# Use explicit per-target runner labels so each release build can scale independently.
232+
runs-on: ${{ matrix.runs_on }}
233233
timeout-minutes: 360
234234
env:
235235
RELEASE_TAG: ${{ needs.resolve-release.outputs.release_tag }}
@@ -246,36 +246,36 @@ jobs:
246246
fail-fast: false
247247
matrix:
248248
include:
249-
- platform: macos-14
250-
os_type: macos
249+
- os_type: macos
251250
target: aarch64-apple-darwin
251+
runs_on: macos-latest
252252
args: "--target aarch64-apple-darwin --bundles dmg,app"
253-
- platform: macos-14
254-
os_type: macos
253+
- os_type: macos
255254
target: x86_64-apple-darwin
255+
runs_on: macos-26-intel
256256
args: "--target x86_64-apple-darwin --bundles dmg,app"
257-
- platform: ubuntu-22.04
258-
os_type: linux
257+
- os_type: linux
259258
target: x86_64-unknown-linux-gnu
259+
runs_on: blacksmith-4vcpu-ubuntu-2404
260260
args: "--target x86_64-unknown-linux-gnu --bundles deb,rpm"
261-
- platform: ubuntu-22.04-arm
262-
os_type: linux
261+
- os_type: linux
263262
target: aarch64-unknown-linux-gnu
263+
runs_on: blacksmith-4vcpu-ubuntu-2404-arm
264264
args: "--target aarch64-unknown-linux-gnu --bundles deb,rpm"
265-
- platform: windows-2022
266-
os_type: windows
265+
- os_type: windows
267266
target: x86_64-pc-windows-msvc
267+
runs_on: blacksmith-4vcpu-windows-2025
268268
args: "--target x86_64-pc-windows-msvc --bundles msi"
269269

270270
steps:
271271
- name: Log runner selection
272272
shell: bash
273273
run: |
274-
echo "Requested larger runner label: ${RUNNER_LABEL:-<unset>}"
275-
echo "Effective runs-on: ${EFFECTIVE_RUNS_ON}"
274+
echo "Configured runs-on: ${RUNS_ON}"
275+
echo "Build target: ${TARGET}"
276276
env:
277-
RUNNER_LABEL: ${{ vars.OPENWORK_LINUX_X64_RUNNER_LABEL }}
278-
EFFECTIVE_RUNS_ON: ${{ matrix.os_type == 'linux' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL != '' && vars.OPENWORK_LINUX_X64_RUNNER_LABEL || matrix.platform }}
277+
RUNS_ON: ${{ matrix.runs_on }}
278+
TARGET: ${{ matrix.target }}
279279

280280
- name: Enable git long paths (Windows)
281281
if: matrix.os_type == 'windows'

0 commit comments

Comments
 (0)