Debian Codegraph @

.github/workflows/wheel.yml

raw
1 on:
2 push:
3 pull_request:
4 schedule:
5 - cron: '30 13 * * *'
6 permissions: { }
7 jobs:
8 linux:
9 strategy:
10 fail-fast: false
11
12 matrix:
13 py:
14 - 'cp39'
15 - 'cp310'
16 - 'cp311'
17 - 'cp312'
18 - 'cp313'
19 - 'cp313t'
20 - 'cp314'
21 - 'cp314t'
22 arch:
23 - 'aarch64'
24 - 'i686'
25 - 'ppc64le'
26 - 's390x'
27 - 'x86_64'
28 abi:
29 - 'manylinux'
30 - 'musllinux'
31 image:
32 - 'manylinux2014'
33 - 'manylinux_2_28'
34 - 'musllinux_1_1'
35 - 'musllinux_1_2'
36 exclude:
37 # Cancel out abi - image mismatch.
38 - abi: 'manylinux'
39 image: 'musllinux_1_1'
40 - abi: 'manylinux'
41 image: 'musllinux_1_2'
42 - abi: 'musllinux'
43 image: 'manylinux2014'
44 - abi: 'musllinux'
45 image: 'manylinux_2_28'
46 # Remove some older ABIs that don't need to exist.
47 - arch: 'i686'
48 image: 'musllinux_1_1'
49 - arch: 'ppc64le'
50 image: 'musllinux_1_1'
51 - arch: 's390x'
52 image: 'musllinux_1_1'
53 # Switch to manylinux_2_28 on 3.14+.
54 - py: 'cp39'
55 image: 'manylinux_2_28'
56 - py: 'cp310'
57 image: 'manylinux_2_28'
58 - py: 'cp311'
59 image: 'manylinux_2_28'
60 - py: 'cp312'
61 image: 'manylinux_2_28'
62 - py: 'cp313'
63 image: 'manylinux_2_28'
64 - py: 'cp314'
65 image: 'manylinux2014'
66 - py: 'cp314t'
67 image: 'manylinux2014'
68 # Drop support for musllinux_1_1 on 3.14+
69 - py: 'cp314'
70 image: 'musllinux_1_1'
71 - py: 'cp314t'
72 image: 'musllinux_1_1'
73 runs-on: ${{ matrix.arch == 'aarch64' && 'ubuntu-22.04-arm' || 'ubuntu-22.04' }}
74 env:
75 CIBW_ARCHS: ${{ matrix.arch }}
76 CIBW_BUILD: ${{ matrix.py }}-${{ matrix.abi }}_${{ matrix.arch }}
77 # uv not present on musllinux cross-compiled images.
78 CIBW_BUILD_FRONTEND: ${{ (matrix.abi == 'musllinux' && (matrix.arch == 'ppc64le' || matrix.arch == 's390x')) && 'build' || 'build[uv]' }}
79 CIBW_BUILD_VERBOSITY: '1'
80 CIBW_MANYLINUX_AARCH64_IMAGE: quay.io/pypa/${{ matrix.image }}_aarch64:latest
81 CIBW_MANYLINUX_I686_IMAGE: quay.io/pypa/${{ matrix.image }}_i686:latest
82 CIBW_MANYLINUX_PPC64LE_IMAGE: quay.io/pypa/${{ matrix.image }}_ppc64le:latest
83 CIBW_MANYLINUX_S390X_IMAGE: quay.io/pypa/${{ matrix.image }}_s390x:latest
84 CIBW_MANYLINUX_X86_64_IMAGE: quay.io/pypa/${{ matrix.image }}_x86_64:latest
85 CIBW_MUSLLINUX_AARCH64_IMAGE: quay.io/pypa/${{ matrix.image }}_aarch64:latest
86 CIBW_MUSLLINUX_I686_IMAGE: quay.io/pypa/${{ matrix.image }}_i686:latest
87 CIBW_MUSLLINUX_PPC64LE_IMAGE: quay.io/pypa/${{ matrix.image }}_ppc64le:latest
88 CIBW_MUSLLINUX_S390X_IMAGE: quay.io/pypa/${{ matrix.image }}_s390x:latest
89 CIBW_MUSLLINUX_X86_64_IMAGE: quay.io/pypa/${{ matrix.image }}_x86_64:latest
90 steps:
91 - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
92 with:
93 persist-credentials: false
94
95 - name: Install uv
96 uses: astral-sh/setup-uv@d9e0f98d3fc6adb07d1e3d37f3043649ddad06a1 # v6.5.0
97 with:
98 version: "0.8.11"
99
100 - name: Set up QEMU
101 if: ${{ matrix.arch == 'ppc64le' || matrix.arch == 's390x' }}
102 uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
103
104 - name: Build wheels
105 run: |
106 uvx -p 3.13 [email protected]
107
108 - name: Upload Wheel
109 if: ${{ !endsWith(matrix.py, 't') }}
110 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
111 with:
112 name: linux-${{ matrix.py }}-${{ matrix.arch }}-${{ matrix.abi }}-${{ matrix.image }}
113 path: ./wheelhouse/*.whl
114
115 macos:
116 strategy:
117 fail-fast: false
118 matrix:
119 py:
120 - 'cp39'
121 - 'cp310'
122 - 'cp311'
123 - 'cp312'
124 - 'cp313'
125 - 'cp313t'
126 - 'cp314'
127 - 'cp314t'
128 arch:
129 - 'arm64'
130 - 'x86_64'
131 runs-on: ${{ matrix.arch == 'x86_64' && 'macos-13' || 'macos-14' }}
132 env:
133 CIBW_ARCHES: ${{ matrix.arch }}
134 CIBW_BUILD: ${{ matrix.py }}-macosx_${{ matrix.arch }}
135 CIBW_BUILD_VERBOSITY: '1'
136 steps:
137 - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
138 with:
139 persist-credentials: false
140
141 - name: Install uv
142 uses: astral-sh/setup-uv@d9e0f98d3fc6adb07d1e3d37f3043649ddad06a1 # v6.5.0
143 with:
144 version: "0.8.11"
145
146 - name: Build wheels
147 run: |
148 uvx -p 3.13 [email protected]
149
150 - name: Upload Wheel
151 if: ${{ !endsWith(matrix.py, 't') }}
152 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
153 with:
154 name: macos-${{ matrix.py }}-${{ matrix.arch }}
155 path: ./wheelhouse/*.whl
156
157 windows:
158 strategy:
159 fail-fast: false
160 matrix:
161 py:
162 - 'cp39'
163 - 'cp310'
164 - 'cp311'
165 - 'cp312'
166 - 'cp313'
167 - 'cp313t'
168 - 'cp314'
169 - 'cp314t'
170 arch:
171 - 'win32'
172 - 'win_amd64'
173 - 'win_arm64'
174 exclude:
175 - py: 'cp39'
176 arch: 'win_arm64'
177 - py: 'cp310'
178 arch: 'win_arm64'
179 runs-on: ${{ matrix.arch == 'win_arm64' && 'windows-11-arm' || 'windows-2022' }}
180 env:
181 CIBW_ARCHES: ${{ matrix.arch }}
182 CIBW_BUILD: ${{ matrix.py }}-${{ matrix.arch }}
183 CIBW_BUILD_VERBOSITY: '1'
184 steps:
185 - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
186 with:
187 persist-credentials: false
188
189 - name: Install uv
190 uses: astral-sh/setup-uv@d9e0f98d3fc6adb07d1e3d37f3043649ddad06a1 # v6.5.0
191 with:
192 version: "0.8.11"
193
194 - name: Build wheels
195 run: |
196 uvx -p 3.13 [email protected]
197
198 - name: Upload Wheel
199 if: ${{ !endsWith(matrix.py, 't') }}
200 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
201 with:
202 name: windows-${{ matrix.py }}-${{ matrix.arch }}
203 path: ./wheelhouse/*.whl