Skip to content

Commit 50622d8

Browse files
committed
prod only be built on windows-2025
1 parent d7489c0 commit 50622d8

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/test_windows_wheel.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,21 @@ permissions:
2222
contents: read
2323

2424
jobs:
25+
compute_matrix:
26+
runs-on: ubuntu-latest
27+
outputs:
28+
matrix: ${{ steps.set.outputs.matrix }}
29+
steps:
30+
- id: set
31+
run: |
32+
if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "${{ inputs.publish_target }}" = "pypi" ]; then
33+
echo 'matrix={"include":[{"platform":"windows-2025"}]}' >> "$GITHUB_OUTPUT"
34+
else
35+
echo 'matrix={"include":[{"platform":"windows-amd"},{"platform":"windows-g9i"},{"platform":"windows-2022"},{"platform":"windows-2025"}]}' >> "$GITHUB_OUTPUT"
36+
fi
37+
2538
build_wheels_linux_x64:
39+
needs: compute_matrix
2640
name: Build wheels on ${{ matrix.platform }} (x64) for TestPyPi
2741
# uses: ./.github/workflows/_build_wheel_job.yml
2842
# with:
@@ -33,12 +47,7 @@ jobs:
3347
strategy:
3448
fail-fast: true
3549
max-parallel: 1
36-
matrix:
37-
include:
38-
- platform: windows-amd
39-
- platform: windows-g9i
40-
- platform: windows-2022
41-
- platform: windows-2025
50+
matrix: ${{ fromJson(needs.compute_matrix.outputs.matrix) }}
4251

4352
runs-on: ${{ matrix.platform }}
4453

0 commit comments

Comments
 (0)