Skip to content

Commit 94fde3e

Browse files
committed
ci(build): run Windows lane on self-hosted c2pool-windows-217 with fork fallback
Point the Windows job at the self-hosted runner (VM217, labels self-hosted/Windows/X64/c2pool-build) for internal-branch PRs and pushes; fork PRs fall back to GitHub-hosted windows-2022 so untrusted code never executes on the self-hosted box. Completes the self-hosted build fleet (Linux pending VM905 runner registration; macOS x86_64 already self-hosted via #100). Conan cache retained.
1 parent e8fa7a7 commit 94fde3e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,11 @@ jobs:
636636
name: Windows x86_64
637637
# dash-slice campaign: skip Windows for PRs carrying the dash-linux-only label (re-enabled at block-viable gate, ~07-01)
638638
if: ${{ !(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'dash-linux-only')) }}
639-
runs-on: windows-2022
639+
# Self-hosted fleet (VM217 c2pool-windows-217): internal-branch PRs and
640+
# pushes run on the self-hosted Windows runner for speed; fork PRs fall
641+
# back to GitHub-hosted windows-2022 so untrusted code never lands on the
642+
# self-hosted box (defense-in-depth atop the repo fork-approval gate).
643+
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' }}
640644
steps:
641645
- uses: actions/checkout@v6
642646

0 commit comments

Comments
 (0)