File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ jobs:
123
123
name : ${{ env.CUDA_CORE_ARTIFACT_NAME }}
124
124
path : ${{ env.CUDA_CORE_ARTIFACTS_DIR }}/*.whl
125
125
if-no-files-found : error
126
- overwrite : ' true'
127
126
128
127
- name : Set up mini CTK
129
128
uses : ./.github/actions/fetch_ctk
@@ -170,16 +169,18 @@ jobs:
170
169
name : ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}
171
170
path : ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl
172
171
if-no-files-found : error
173
- overwrite : ' true'
174
172
173
+ # overwrite: true has a race condition among parallel jobs, so we let job 0 do the work
175
174
- name : Build and check cuda-python wheel
175
+ if : ${{ strategy.job-index == 0 }}
176
176
run : |
177
177
pushd cuda_python
178
178
pip wheel -v --no-deps .
179
179
twine check *.whl
180
180
popd
181
181
182
182
- name : List the cuda-python artifacts directory
183
+ if : ${{ strategy.job-index == 0 }}
183
184
run : |
184
185
if [[ "${{ matrix.host-platform }}" == win* ]]; then
185
186
export CHOWN=chown
@@ -189,13 +190,13 @@ jobs:
189
190
$CHOWN -R $(whoami) cuda_python/*.whl
190
191
ls -lahR cuda_python
191
192
192
- - name : Upload cuda.bindings build artifacts
193
+ - name : Upload cuda-python build artifacts
194
+ if : ${{ strategy.job-index == 0 }}
193
195
uses : actions/upload-artifact@v4
194
196
with :
195
197
name : cuda-python-wheel
196
198
path : cuda_python/*.whl
197
199
if-no-files-found : error
198
- overwrite : ' true'
199
200
200
201
- name : Pass environment variables to the next runner
201
202
id : pass_env
You can’t perform that action at this time.
0 commit comments