Skip to content

Commit c0c804b

Browse files
committed
ci(build): flip windows lane to self-hosted VM217 (fork-gated)
VM217 (c2pool-windows-217) toolchain probe run 28679257030 is green across Python 3.12, Conan 2, CMake, Git and MSVC/VS 2022 C++ build tools. Route internal PRs/pushes to the self-hosted runner via the #439 fork-gate expr; fork PRs keep GitHub-hosted windows-2022. setup-python gated to github-hosted so VM217 uses its pre-provisioned interpreter. Last GitHub-hosted C++ lane.
1 parent e602287 commit c0c804b

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
sudo apt-get install -y --no-install-recommends \
3838
g++ ccache cmake make libleveldb-dev libsecp256k1-dev
3939
40+
# Python is pre-provisioned on VM217; only provision on GitHub-hosted forks.
4041
- uses: actions/setup-python@v6
42+
if: ${{ runner.environment == 'github-hosted' }}
4143
with: { python-version: '3.12' }
4244

4345
- name: Install Conan 2
@@ -721,14 +723,12 @@ jobs:
721723
name: Windows x86_64
722724
# dash-slice campaign: skip Windows for PRs carrying the dash-linux-only label (re-enabled at block-viable gate, ~07-01)
723725
if: ${{ !(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'dash-linux-only')) }}
724-
# GitHub-hosted windows-2022 (ships cmake + MSVC/VS 2022 + the SDK).
725-
# VM217 (c2pool-windows-217) is still a bare runner: the self-hosted flip
726-
# failed at actions/setup-python@v6 (cannot provision Python on VM217) and
727-
# no VS 2022 Build Tools are installed yet. FOLLOW-UP: once vm-fleet installs
728-
# VS 2022 Build Tools (C++ workload) + cmake + python on VM217 and it builds
729-
# c2pool clean, a follow-up PR flips this to the fork-gated self-hosted expr.
730-
# web-static + pplns self-hosted routes on this branch are proven green.
731-
runs-on: windows-2022
726+
# Internal PRs / pushes -> self-hosted c2pool-windows-217 (VM217): toolchain
727+
# probe run 28679257030 green (Python 3.12, Conan 2, CMake, Git, MSVC/VS 2022
728+
# C++ build tools all provisioned). Fork PRs fall back to GitHub-hosted
729+
# windows-2022 (ships cmake + MSVC/VS 2022 + SDK). Completes the #439
730+
# self-hosted migration -- Windows was the last GitHub-hosted C++ lane.
731+
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' }}
732732
steps:
733733
- uses: actions/checkout@v6
734734

0 commit comments

Comments
 (0)