|
24 | 24 | required: false |
25 | 25 | type: boolean |
26 | 26 | default: false |
| 27 | + python-versions: |
| 28 | + description: "JSON-encoded array of Python versions to build (e.g. '[\"3.11\",\"3.12\"]'). ci.yml sources this from ci/versions.yml." |
| 29 | + required: true |
| 30 | + type: string |
27 | 31 |
|
28 | 32 | defaults: |
29 | 33 | run: |
|
47 | 51 | strategy: |
48 | 52 | fail-fast: false |
49 | 53 | matrix: |
50 | | - python-version: |
51 | | - - "3.10" |
52 | | - - "3.11" |
53 | | - - "3.12" |
54 | | - - "3.13" |
55 | | - - "3.14" |
56 | | - - "3.14t" |
57 | | - - "3.15" |
58 | | - - "3.15t" |
59 | | - exclude: |
60 | | - # CPython 3.10 has no official Windows ARM64 build (neither |
61 | | - # nuget-cpython nor actions/setup-python's manifest carries one), |
62 | | - # so it cannot be built or tested on win-arm64. |
63 | | - - python-version: ${{ (inputs.host-platform == 'win-arm64' && '3.10') || '' }} |
| 54 | + python-version: ${{ fromJSON(inputs.python-versions) }} |
64 | 55 | name: py${{ matrix.python-version }} |
65 | 56 | runs-on: ${{ (inputs.host-platform == 'linux-64' && 'linux-amd64-cpu8') || |
66 | 57 | (inputs.host-platform == 'linux-aarch64' && 'linux-arm64-cpu8') || |
@@ -95,16 +86,16 @@ jobs: |
95 | 86 | | sudo tar -C /usr/local/bin -xvzf - --wildcards --strip-components=1 -x '*/sccache' |
96 | 87 | echo "SCCACHE_PATH=/usr/local/bin/sccache" >> "$GITHUB_ENV" |
97 | 88 |
|
| 89 | + # The runner only exposes these values to actions, not to `run:` steps or |
| 90 | + # the cibuildwheel container, so re-export them for sccache's GHA backend. |
98 | 91 | # xref: https://github.com/orgs/community/discussions/42856#discussioncomment-7678867 |
99 | 92 | - name: Adding addtional GHA cache-related env vars |
100 | 93 | if: ${{ env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' }} |
101 | 94 | uses: actions/github-script@v9 |
102 | 95 | with: |
103 | 96 | script: | |
104 | 97 | core.exportVariable('ACTIONS_CACHE_SERVICE_V2', 'on'); |
105 | | - core.exportVariable('ACTIONS_CACHE_URL', process.env['ACTIONS_CACHE_URL'] || ''); |
106 | 98 | core.exportVariable('ACTIONS_RESULTS_URL', process.env['ACTIONS_RESULTS_URL'] || ''); |
107 | | - core.exportVariable('ACTIONS_RUNTIME_URL', process.env['ACTIONS_RUNTIME_URL'] || ''); |
108 | 99 | core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN'] || ''); |
109 | 100 |
|
110 | 101 | - name: Setup proxy cache |
@@ -256,9 +247,7 @@ jobs: |
256 | 247 | CXX="/host/${{ env.SCCACHE_PATH }} c++" |
257 | 248 | SCCACHE_GHA_ENABLED=true |
258 | 249 | ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }} |
259 | | - ACTIONS_RUNTIME_URL=${{ env.ACTIONS_RUNTIME_URL }} |
260 | 250 | ACTIONS_RESULTS_URL=${{ env.ACTIONS_RESULTS_URL }} |
261 | | - ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }} |
262 | 251 | ACTIONS_CACHE_SERVICE_V2=${{ env.ACTIONS_CACHE_SERVICE_V2 }} |
263 | 252 | CIBW_ENVIRONMENT_WINDOWS: > |
264 | 253 | CUDA_PATH="$(cygpath -w ${{ env.CUDA_PATH }})" |
@@ -355,9 +344,7 @@ jobs: |
355 | 344 | CXX="/host/${{ env.SCCACHE_PATH }} c++" |
356 | 345 | SCCACHE_GHA_ENABLED=true |
357 | 346 | ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }} |
358 | | - ACTIONS_RUNTIME_URL=${{ env.ACTIONS_RUNTIME_URL }} |
359 | 347 | ACTIONS_RESULTS_URL=${{ env.ACTIONS_RESULTS_URL }} |
360 | | - ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }} |
361 | 348 | ACTIONS_CACHE_SERVICE_V2=${{ env.ACTIONS_CACHE_SERVICE_V2 }} |
362 | 349 | CIBW_ENVIRONMENT_WINDOWS: > |
363 | 350 | CUDA_PATH="$(cygpath -w ${{ env.CUDA_PATH }})" |
@@ -641,9 +628,7 @@ jobs: |
641 | 628 | CXX="/host/${{ env.SCCACHE_PATH }} c++" |
642 | 629 | SCCACHE_GHA_ENABLED=true |
643 | 630 | ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }} |
644 | | - ACTIONS_RUNTIME_URL=${{ env.ACTIONS_RUNTIME_URL }} |
645 | 631 | ACTIONS_RESULTS_URL=${{ env.ACTIONS_RESULTS_URL }} |
646 | | - ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }} |
647 | 632 | ACTIONS_CACHE_SERVICE_V2=${{ env.ACTIONS_CACHE_SERVICE_V2 }} |
648 | 633 | CIBW_ENVIRONMENT_WINDOWS: > |
649 | 634 | CUDA_PATH="$(cygpath -w ${{ env.CUDA_PATH }})" |
|
0 commit comments