Skip to content

Commit 78c8afd

Browse files
committed
do this instead
1 parent 19e5709 commit 78c8afd

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

.github/workflows/build-wheel.yml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,13 @@ jobs:
4646
# Skip the cache on Windows nodes outside of our org.
4747
if: ${{ inputs.host-platform != 'win-64' }}
4848

49-
- name: Set up one env var
50-
run: |
51-
# we use self-hosted runners on which setup-python behaves weirdly...
52-
# see actions/setup-python#1087
53-
# this can influence both setup-python and cibuildtools
54-
echo "AGENT_TOOLSDIRECTORY=${{ runner.temp }}/SETUP_PYTHON" >> $GITHUB_ENV
55-
5649
- name: Set up Python
57-
id: setup-python
50+
id: setup-python1
5851
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
5952
with:
60-
python-version: ${{ matrix.python-version }}
53+
# WAR: setup-python is not relocatable, and cibuildwheel hard-wires to 3.12...
54+
# see https://github.com/actions/setup-python/issues/871
55+
python-version: "3.12"
6156

6257
- name: Set up MSVC
6358
if: ${{ startsWith(inputs.host-platform, 'win') }}
@@ -173,18 +168,6 @@ jobs:
173168
path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl
174169
if-no-files-found: error
175170

176-
- name: Build cuda.bindings Cython tests
177-
run: |
178-
pip install $(ls -l ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl)[test]
179-
bash ${{ env.CUDA_BINDINGS_CYTHON_TESTS_DIR }}/build_tests.sh
180-
181-
- name: Upload cuda.bindings Cython tests
182-
uses: actions/upload-artifact@v4
183-
with:
184-
name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}-tests
185-
path: ${{ env.CUDA_BINDINGS_CYTHON_TESTS_DIR }}/test_*.${{ env.PY_EXT_SUFFIX }}
186-
if-no-files-found: error
187-
188171
# We only need/want a single pure python wheel, pick linux-64 index 0.
189172
- name: Build and check cuda-python wheel
190173
if: ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }}
@@ -212,3 +195,21 @@ jobs:
212195
name: cuda-python-wheel
213196
path: cuda_python/*.whl
214197
if-no-files-found: error
198+
199+
- name: Set up Python
200+
id: setup-python2
201+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
202+
with:
203+
python-version: ${{ matrix.python-version }}
204+
205+
- name: Build cuda.bindings Cython tests
206+
run: |
207+
pip install $(ls -l ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl)[test]
208+
bash ${{ env.CUDA_BINDINGS_CYTHON_TESTS_DIR }}/build_tests.sh
209+
210+
- name: Upload cuda.bindings Cython tests
211+
uses: actions/upload-artifact@v4
212+
with:
213+
name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}-tests
214+
path: ${{ env.CUDA_BINDINGS_CYTHON_TESTS_DIR }}/test_*.${{ env.PY_EXT_SUFFIX }}
215+
if-no-files-found: error

0 commit comments

Comments
 (0)