Skip to content

Commit 9dfd667

Browse files
committed
gh-actions wheels: split riscv64 building in half; so slow!!
1 parent 5fdd0b1 commit 9dfd667

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,11 @@ jobs:
119119
path: ./wheelhouse/*.whl
120120

121121
build_wheels_riscv64:
122-
name: riscv64 wheels
122+
name: riscv64 ${{ matrix.target }} wheels
123123
runs-on: ubuntu-latest
124+
strategy:
125+
matrix:
126+
target: [ 'many', 'musl' ]
124127
steps:
125128
- uses: actions/checkout@v5
126129
if: ${{ github.event_name != 'repository_dispatch' }}
@@ -132,8 +135,20 @@ jobs:
132135
fetch-depth: 0 # slow, but gets all the tags
133136
ref: ${{ github.event.client_payload.ref }}
134137

138+
- name: Skip manylinux for musllinux target
139+
if: ${{ matrix.target == 'musl' }}
140+
run: |
141+
echo "CIBW_SKIP=*manylinux*" >> "$GITHUB_ENV"
142+
143+
- name: Skip musllinux for manylinux target
144+
if: ${{ matrix.target == 'many' }}
145+
run: |
146+
echo "CIBW_SKIP=*musllinux*" >> "$GITHUB_ENV"
147+
135148
- name: ccache
136149
uses: hendrikmuhs/ccache-action@v1.2
150+
with:
151+
key: ${{ github.job }}-${{ matrix.target }}
137152

138153
- name: Set up QEMU
139154
uses: docker/setup-qemu-action@v3
@@ -157,7 +172,7 @@ jobs:
157172

158173
- uses: actions/upload-artifact@v4
159174
with:
160-
name: artifact-riscv64
175+
name: artifact-riscv64-${{ matrix.target }}
161176
path: ./wheelhouse/*.whl
162177

163178
upload_pypi:

0 commit comments

Comments
 (0)