From 4313229c808fd22a3a63b4b383be58b8e4aa9d25 Mon Sep 17 00:00:00 2001 From: frstrtr Date: Mon, 13 Jul 2026 05:45:12 +0000 Subject: [PATCH] ci(release): repoint macOS/Windows/checksums to self-hosted runners MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Finish the #439 self-hosted migration for release.yml, which lagged build.yml (PR #617) because it only fires on tags — the v0.2.1 tag exposed the gap. Mirror the exact fork-fallback guard build.yml proved: head.repo == repository ? self-hosted : github-hosted. - macos arm64 + macos-universal (lipo merge) -> c2pool-mac-arm (Alonso-227), else macos-14 - windows -> [self-hosted,Windows,X64,c2pool-build] (VM217), else windows-2022 - checksums/draft -> [self-hosted,Linux,X64,c2pool-build], else ubuntu-24.04 macos x86_64 (c2pool-mac-intel) and linux were already self-hosted. Pure config; no new infra (runners live, build.yml uses them daily). --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 77e8a6997..ea00bd7e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -201,7 +201,7 @@ jobs: arch: [arm64, x86_64] include: - arch: arm64 - runner: macos-14 + 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' }} - arch: x86_64 runner: [self-hosted, macOS, X64, c2pool-mac-intel] steps: @@ -308,7 +308,7 @@ jobs: name: ${{ matrix.coin }} package (macOS universal) needs: macos if: always() - runs-on: macos-14 + 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' }} strategy: fail-fast: false matrix: @@ -412,7 +412,7 @@ jobs: # ════════════════════════════════════════════════════════════════════════════ windows: name: ${{ matrix.coin }} package (Windows x86_64) - runs-on: windows-2022 + 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' }} strategy: fail-fast: false matrix: @@ -556,7 +556,7 @@ jobs: # ════════════════════════════════════════════════════════════════════════════ checksums: name: SHA256SUMS + draft release - runs-on: ubuntu-24.04 + 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' }} needs: [linux, macos-universal, windows] if: always() permissions: