Skip to content

Commit 01c7c5a

Browse files
oralubenXuehaiPan
andauthored
Update .github/workflows/dist.yml
Co-authored-by: Xuehai Pan <XuehaiPan@outlook.com>
1 parent c174093 commit 01c7c5a

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

.github/workflows/dist.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,25 @@ jobs:
3030
fetch-depth: 1
3131
submodules: recursive
3232

33-
- name: Install cibuildwheel
34-
run: python -m pip install cibuildwheel==3.2.0
33+
- name: Set up QEMU
34+
if: runner.os == 'Linux'
35+
uses: docker/setup-qemu-action@v3
36+
with:
37+
platforms: all
3538

36-
- name: Build wheels
37-
run: |
38-
python -m cibuildwheel --output-dir wheelhouse
39-
echo "whl_name=$(ls wheelhouse | head -n1)" >> $GITHUB_OUTPUT
39+
- name: Build wheels
40+
uses: pypa/cibuildwheel@v3.2
41+
env:
42+
CIBW_BUILD: cp312-*
43+
CIBW_ARCHS: auto64
44+
CIBW_ARCHS_MACOS: auto64 niversal2
45+
with:
46+
package-dir: .
47+
output-dir: wheelhouse
48+
config-file: "{package}/pyproject.toml"
4049

41-
- uses: actions/upload-artifact@v4
42-
with:
43-
name: ${{ steps.repair.outputs.whl_name }}.zip
44-
path: wheelhouse/${{ steps.repair.outputs.whl_name }}
45-
compression-level: 0
50+
- uses: actions/upload-artifact@v4
51+
with:
52+
name: wheels-${{ env.PYTHON_VERSION }}-${{ runner.os }}-${{ runner.arch }}
53+
path: wheelhouse/*.whl
54+
if-no-files-found: error

0 commit comments

Comments
 (0)