Skip to content

Commit 3affe43

Browse files
committed
Init builds workflow
1 parent 9e8f4d2 commit 3affe43

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

.github/workflows/builds.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Build wheels & sdist
2+
on:
3+
workflow_call:
4+
workflow_dispatch:
5+
6+
concurrency:
7+
group: ${{ github.workflow}}-${{ github.head_ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
wheels:
12+
name: Build Wheels - ${{ matrix.os }} - ${{ matrix.python-version[0] }}
13+
runs-on: ${{ matrix.runs-on }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version:
18+
- ["CPython 3.10", "cp310"]
19+
- ["CPython 3.11", "cp311"]
20+
- ["CPython 3.12", "cp312"]
21+
- ["CPython 3.13", "cp313"]
22+
include:
23+
- os: Linux-x64
24+
runs-on: ubuntu-latest
25+
- os: Linux-arm64
26+
runs-on: ubuntu-24.04-arm
27+
- os: Windows-x64
28+
runs-on: windows-latest
29+
- os: Windows-arm64
30+
runs-on: windows-11-arm
31+
- os: macOS-x64
32+
runs-on: macos-13
33+
- os: macOS-arm64
34+
runs-on: macos-latest
35+
36+
steps:
37+
- name: Checkout source
38+
uses: actions/checkout@v5
39+
with:
40+
persist-credentials: false
41+
42+
- name: Build wheels
43+
uses: pypa/[email protected]
44+
env:
45+
CIBW_BUILD: ${{ matrix.python-version[1] }}-*
46+
47+
- uses: actions/upload-artifact@v4
48+
with:
49+
name: wheels-${{ matrix.python-version[0] }}-${{ matrix.os }}
50+
path: ./wheelhouse/*.whl
51+
52+
sdist:
53+
name: Build source distribution
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v5
57+
with:
58+
persist-credentials: false
59+
60+
- name: Build sdist
61+
run: pipx run build --sdist
62+
63+
- uses: actions/upload-artifact@v4
64+
with:
65+
name: sdist
66+
path: dist/*.tar.gz

0 commit comments

Comments
 (0)