Skip to content

Commit c79e4be

Browse files
authored
Merge pull request #689 from frstrtr/ci-steward/release-runner-repoint
ci(release): repoint macOS/Windows/checksums to self-hosted runners (finish #439)
2 parents 451ffb1 + 4313229 commit c79e4be

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ jobs:
205205
arch: [arm64, x86_64]
206206
include:
207207
- arch: arm64
208-
runner: macos-14
208+
runner: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && fromJSON('["self-hosted","macOS","ARM64","c2pool-mac-arm"]') || 'macos-14' }}
209209
- arch: x86_64
210210
runner: [self-hosted, macOS, X64, c2pool-mac-intel]
211211
steps:
@@ -313,7 +313,7 @@ jobs:
313313
name: ${{ matrix.coin }} package (macOS universal)
314314
needs: macos
315315
if: always()
316-
runs-on: macos-14
316+
runs-on: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && fromJSON('["self-hosted","macOS","ARM64","c2pool-mac-arm"]') || 'macos-14' }}
317317
strategy:
318318
fail-fast: false
319319
matrix:
@@ -417,7 +417,7 @@ jobs:
417417
# ════════════════════════════════════════════════════════════════════════════
418418
windows:
419419
name: ${{ matrix.coin }} package (Windows x86_64)
420-
runs-on: windows-2022
420+
runs-on: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && fromJSON('["self-hosted","Windows","X64","c2pool-build"]') || 'windows-2022' }}
421421
strategy:
422422
fail-fast: false
423423
matrix:
@@ -562,7 +562,7 @@ jobs:
562562
# ════════════════════════════════════════════════════════════════════════════
563563
checksums:
564564
name: SHA256SUMS + draft release
565-
runs-on: ubuntu-24.04
565+
runs-on: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && fromJSON('["self-hosted","Linux","X64","c2pool-build"]') || 'ubuntu-24.04' }}
566566
needs: [linux, macos-universal, windows]
567567
if: always()
568568
permissions:

0 commit comments

Comments
 (0)