File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -26,26 +26,32 @@ jobs:
26
26
27
27
steps :
28
28
- name : Set up QEMU
29
- if : matrix.cibw_archs == 'aarch64'
29
+ if : startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' && matrix.cibw_archs == 'aarch64'
30
30
uses : docker/setup-qemu-action@v2
31
31
with :
32
32
platforms : arm64
33
33
- name : Checkout Repository
34
+ if : startsWith(github.ref, 'refs/tags/') || matrix.os == 'ubuntu-latest' && matrix.cibw_archs == 'native'
34
35
uses : actions/checkout@v4
35
36
- name : Clone Suitesparse
37
+ if : startsWith(github.ref, 'refs/tags/') || matrix.os == 'ubuntu-latest' && matrix.cibw_archs == 'native'
36
38
run : make suitesparse
37
39
- name : Clone XLA
40
+ if : startsWith(github.ref, 'refs/tags/') || matrix.os == 'ubuntu-latest' && matrix.cibw_archs == 'native'
38
41
run : make xla
39
42
- name : Clone Pybind11
43
+ if : startsWith(github.ref, 'refs/tags/') || matrix.os == 'ubuntu-latest' && matrix.cibw_archs == 'native'
40
44
run : make pybind11
41
45
- name : Build Wheels
46
+ if : startsWith(github.ref, 'refs/tags/') || matrix.os == 'ubuntu-latest' && matrix.cibw_archs == 'native'
42
47
43
48
env :
44
49
CIBW_ARCHS : ${{ matrix.cibw_archs }}
45
50
CIBW_SKIP : " *-musllinux* pp*"
46
51
# CIBW_BEFORE_TEST: "pip install pytest"
47
52
# CIBW_TEST_COMMAND: "python {project}/.github/run_tests.py"
48
53
- name : Upload Wheels
54
+ if : startsWith(github.ref, 'refs/tags/') || matrix.os == 'ubuntu-latest' && matrix.cibw_archs == 'native'
49
55
uses : actions/upload-artifact@v4
50
56
with :
51
57
name : wheels-${{ matrix.os }}-${{ matrix.cibw_archs }}
You can’t perform that action at this time.
0 commit comments