|
37 | 37 | sudo apt-get install -y --no-install-recommends \ |
38 | 38 | g++ ccache cmake make libleveldb-dev libsecp256k1-dev |
39 | 39 |
|
| 40 | + # Python is pre-provisioned on VM217; only provision on GitHub-hosted forks. |
40 | 41 | - uses: actions/setup-python@v6 |
| 42 | + if: ${{ runner.environment == 'github-hosted' }} |
41 | 43 | with: { python-version: '3.12' } |
42 | 44 |
|
43 | 45 | - name: Install Conan 2 |
@@ -721,14 +723,12 @@ jobs: |
721 | 723 | name: Windows x86_64 |
722 | 724 | # dash-slice campaign: skip Windows for PRs carrying the dash-linux-only label (re-enabled at block-viable gate, ~07-01) |
723 | 725 | 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' }} |
732 | 732 | steps: |
733 | 733 | - uses: actions/checkout@v6 |
734 | 734 |
|
|
0 commit comments