Skip to content

Commit 157ba7a

Browse files
rm duplicate ci jobs
1 parent 31b277c commit 157ba7a

1 file changed

Lines changed: 34 additions & 65 deletions

File tree

.github/workflows/cibuildwheel.yml

Lines changed: 34 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -28,134 +28,111 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
include:
31-
# push/PR events (subset, 3 py versions for ubuntu and 1 each for windows and macos)
32-
- os: ubuntu-latest
33-
python: 312
34-
platform_id: manylinux_x86_64
35-
manylinux_image: manylinux_2_28
36-
build_condition: reduced
37-
- os: ubuntu-latest
38-
python: 313
39-
platform_id: manylinux_x86_64
40-
manylinux_image: manylinux_2_28
41-
build_condition: reduced
42-
- os: ubuntu-latest
43-
python: 314
44-
platform_id: manylinux_x86_64
45-
manylinux_image: manylinux_2_28
46-
build_condition: reduced
47-
- os: windows-latest
48-
python: 312
49-
platform_id: win_amd64
50-
build_condition: reduced
51-
- os: macos-14
52-
python: 312
53-
platform_id: macosx_arm64
54-
build_condition: reduced
55-
56-
# For releases and PR events (full matrix)
5731
# Linux
5832
- os: ubuntu-latest
5933
python: 39
6034
platform_id: manylinux_x86_64
6135
manylinux_image: manylinux_2_28
62-
build_condition: full
36+
run_on_main_push: false
6337
- os: ubuntu-latest
6438
python: 310
6539
platform_id: manylinux_x86_64
6640
manylinux_image: manylinux_2_28
67-
build_condition: full
41+
run_on_main_push: false
6842
- os: ubuntu-latest
6943
python: 311
7044
platform_id: manylinux_x86_64
7145
manylinux_image: manylinux_2_28
72-
build_condition: full
46+
run_on_main_push: false
7347
- os: ubuntu-latest
7448
python: 312
7549
platform_id: manylinux_x86_64
7650
manylinux_image: manylinux_2_28
77-
build_condition: full
51+
run_on_main_push: true
7852
- os: ubuntu-latest
7953
python: 313
8054
platform_id: manylinux_x86_64
8155
manylinux_image: manylinux_2_28
82-
build_condition: full
56+
run_on_main_push: true
8357
- os: ubuntu-latest
8458
python: 314
8559
platform_id: manylinux_x86_64
8660
manylinux_image: manylinux_2_28
87-
build_condition: full
61+
run_on_main_push: true
62+
8863
# Windows
8964
- os: windows-latest
9065
python: 39
9166
platform_id: win_amd64
92-
build_condition: full
67+
run_on_main_push: false
9368
- os: windows-latest
9469
python: 310
9570
platform_id: win_amd64
96-
build_condition: full
71+
run_on_main_push: false
9772
- os: windows-latest
9873
python: 311
9974
platform_id: win_amd64
100-
build_condition: full
75+
run_on_main_push: false
10176
- os: windows-latest
10277
python: 312
10378
platform_id: win_amd64
104-
build_condition: full
79+
run_on_main_push: false
10580
- os: windows-latest
10681
python: 313
10782
platform_id: win_amd64
108-
build_condition: full
83+
run_on_main_push: false
10984
- os: windows-latest
11085
python: 314
11186
platform_id: win_amd64
112-
build_condition: full
113-
# macOS x86_64 (py314 not supported due to missing torchvision wheels)
87+
run_on_main_push: true
88+
89+
# macOS x86_64
11490
- os: macos-15-intel
11591
python: 39
11692
platform_id: macosx_x86_64
117-
build_condition: full
93+
run_on_main_push: false
11894
- os: macos-15-intel
11995
python: 310
12096
platform_id: macosx_x86_64
121-
build_condition: full
97+
run_on_main_push: false
12298
- os: macos-15-intel
12399
python: 311
124100
platform_id: macosx_x86_64
125-
build_condition: full
101+
run_on_main_push: false
126102
- os: macos-15-intel
127103
python: 312
128104
platform_id: macosx_x86_64
129-
build_condition: full
105+
run_on_main_push: false
130106
- os: macos-15-intel
131107
python: 313
132108
platform_id: macosx_x86_64
133-
build_condition: full
134-
# macOS arm64
109+
run_on_main_push: true
110+
111+
# macOS arm64
135112
- os: macos-14
136113
python: 39
137114
platform_id: macosx_arm64
138-
build_condition: full
115+
run_on_main_push: false
139116
- os: macos-14
140117
python: 310
141118
platform_id: macosx_arm64
142-
build_condition: full
119+
run_on_main_push: false
143120
- os: macos-14
144121
python: 311
145122
platform_id: macosx_arm64
146-
build_condition: full
123+
run_on_main_push: false
147124
- os: macos-14
148125
python: 312
149126
platform_id: macosx_arm64
150-
build_condition: full
127+
run_on_main_push: false
151128
- os: macos-14
152129
python: 313
153130
platform_id: macosx_arm64
154-
build_condition: full
131+
run_on_main_push: false
155132
- os: macos-14
156133
python: 314
157134
platform_id: macosx_arm64
158-
build_condition: full
135+
run_on_main_push: true
159136

160137
steps:
161138
# skip based on event type and build condition
@@ -164,26 +141,18 @@ jobs:
164141
run: |
165142
SKIP=false
166143
167-
# run reduced builds for pushes to main
144+
# pushes to main
168145
if [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" != *"wheels"* ]]; then
169-
if [[ "${{ matrix.build_condition }}" == "full" ]]; then
146+
if [[ "${{ matrix.run_on_main_push }}" == "false" ]]; then
170147
SKIP=true
171148
fi
172149
fi
173-
174-
# run full builds for releases and PRs
175-
if [[ ("${{ github.event_name }}" == "release" || "${{ github.event_name }}" == "pull_request") && "${{ matrix.build_condition }}" == "reduced" ]]; then
176-
SKIP=true
177-
fi
178-
179-
# run full builds for pushes to wheels branch
180-
if [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == *"wheels"* && "${{ matrix.build_condition }}" == "reduced" ]]; then
181-
SKIP=true
182-
fi
183-
150+
184151
echo "skip=$SKIP" >> $GITHUB_OUTPUT
185152
if [[ "$SKIP" == "true" ]]; then
186-
echo "Skipping build for ${{ matrix.build_condition }} on ${{ github.event_name }}"
153+
echo "Skipping low priority build for ${{ matrix.os }} Python ${{ matrix.python }} on push event"
154+
else
155+
echo "Running build for ${{ matrix.os }} Python ${{ matrix.python }} (run_on_main_push: ${{ matrix.run_on_main_push }})"
187156
fi
188157
189158
- name: Checkout repository

0 commit comments

Comments
 (0)