Skip to content

Commit cff1637

Browse files
committed
only run it on tags
1 parent 1861cd9 commit cff1637

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,32 @@ jobs:
2626

2727
steps:
2828
- 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'
3030
uses: docker/setup-qemu-action@v2
3131
with:
3232
platforms: arm64
3333
- name: Checkout Repository
34+
if: startsWith(github.ref, 'refs/tags/') || matrix.os == 'ubuntu-latest' && matrix.cibw_archs == 'native'
3435
uses: actions/checkout@v4
3536
- name: Clone Suitesparse
37+
if: startsWith(github.ref, 'refs/tags/') || matrix.os == 'ubuntu-latest' && matrix.cibw_archs == 'native'
3638
run: make suitesparse
3739
- name: Clone XLA
40+
if: startsWith(github.ref, 'refs/tags/') || matrix.os == 'ubuntu-latest' && matrix.cibw_archs == 'native'
3841
run: make xla
3942
- name: Clone Pybind11
43+
if: startsWith(github.ref, 'refs/tags/') || matrix.os == 'ubuntu-latest' && matrix.cibw_archs == 'native'
4044
run: make pybind11
4145
- name: Build Wheels
46+
if: startsWith(github.ref, 'refs/tags/') || matrix.os == 'ubuntu-latest' && matrix.cibw_archs == 'native'
4247
uses: pypa/[email protected]
4348
env:
4449
CIBW_ARCHS: ${{ matrix.cibw_archs }}
4550
CIBW_SKIP: "*-musllinux* pp*"
4651
# CIBW_BEFORE_TEST: "pip install pytest"
4752
# CIBW_TEST_COMMAND: "python {project}/.github/run_tests.py"
4853
- name: Upload Wheels
54+
if: startsWith(github.ref, 'refs/tags/') || matrix.os == 'ubuntu-latest' && matrix.cibw_archs == 'native'
4955
uses: actions/upload-artifact@v4
5056
with:
5157
name: wheels-${{ matrix.os }}-${{ matrix.cibw_archs }}

0 commit comments

Comments
 (0)