This repository was archived by the owner on Jun 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +58
-0
lines changed
Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Python Wheels
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ tags :
8+ - ' v*'
9+ pull_request :
10+ branches :
11+ - main
12+ workflow_dispatch :
13+
14+ jobs :
15+ build_wheels :
16+ name : Build ${{ matrix.python-version }} wheels on ${{ matrix.runner_arch }}
17+ runs-on : ${{ matrix.runner_os }}-${{ matrix.runner_arch }}
18+
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ python-version : ['3.12']
23+ include :
24+ - runner_os : ubuntu-latest
25+ runner_arch : x64
26+ cibw_build_value : " cp*-manylinux_x86_64 cp*-musllinux_x86_64"
27+
28+ - runner_os : ubuntu-latest
29+ runner_arch : arm64
30+ cibw_build_value : " cp*-manylinux_aarch64 cp*-musllinux_aarch64"
31+
32+ - runner_os : macos-latest
33+ runner_arch : arm64
34+ cibw_build_value : " cp*-macosx_x86_64 cp*-macosx_arm64"
35+
36+ steps :
37+ - uses : actions/checkout@v4
38+ with :
39+ fetch-depth : 0
40+
41+ - name : Set up Python ${{ matrix.python-version }}
42+ uses : actions/setup-python@v5
43+ with :
44+ python-version : ${{ matrix.python-version }}
45+
46+ - name : Install cibuildwheel
47+ run : pip install cibuildwheel==2.23.3
48+
49+ - name : Build wheels
50+ env :
51+ CIBW_BUILD : ${{ matrix.cibw_build_value }}
52+ run : cibuildwheel --output-dir wheelhouse
53+
54+ - name : Upload wheels
55+ uses : actions/upload-artifact@v4
56+ with :
57+ name : wheels-python${{ matrix.python-version }}-${{ matrix.runner_arch }}
58+ path : ./wheelhouse/*.whl
You can’t perform that action at this time.
0 commit comments