17
17
python :
18
18
- ' 3.11'
19
19
- ' 3.12'
20
- - ' 3.13'
21
20
steps :
22
21
- name : Install Apt packages
23
22
id : cache-apt
26
25
execute_install_scripts : true
27
26
packages : libfuse-dev
28
27
version : 1.0
29
- - name : Install Protoc
30
- uses : arduino/setup-protoc@v3
31
- with :
32
- version : " 25.x"
33
28
- name : Checkout the Git repository
34
29
uses : actions/checkout@v4
35
30
- uses : actions/setup-python@v5
61
56
execute_install_scripts : true
62
57
packages : libfuse-dev ccache
63
58
version : 1.0
64
- - name : Install Protoc
65
- uses : arduino/setup-protoc@v3
66
- with :
67
- version : " 25.x"
68
59
- name : Checkout the Git repository
69
60
uses : actions/checkout@v4
70
61
- uses : actions/setup-python@v5
107
98
fuse-dev
108
99
git
109
100
patchelf
110
- protoc
111
101
- name : Nuitka ccache
112
102
uses : actions/cache@v4
113
103
with :
@@ -186,7 +176,6 @@ jobs:
186
176
python :
187
177
- ' 3.11'
188
178
- ' 3.12'
189
- - ' 3.13'
190
179
steps :
191
180
- name : Checkout the Git repository
192
181
uses : actions/checkout@v4
@@ -195,18 +184,24 @@ jobs:
195
184
with :
196
185
python-version : ${{ matrix.python }}
197
186
cache : ' pip'
198
- - name : Install Protoc
199
- uses : arduino/setup-protoc@v3
200
- with :
201
- version : " 25.x"
202
- - name : Install build tool
203
- run : pip install build
204
187
- name : Building package
205
- run : make wheel
188
+ run : |
189
+ python_version=${{ matrix.python }}
190
+ python_version=cp${python_version//.}
191
+ script=$(cat <<EOF
192
+ cd /src;
193
+ export PATH=\$PATH:/opt/python/$python_version-$python_version/bin;
194
+ make ${{ env.FLAGS }} wheel;
195
+ auditwheel repair dist/*.whl;
196
+ EOF
197
+ )
198
+ docker run -v $(pwd):/src \
199
+ quay.io/pypa/manylinux_2_34_x86_64:latest \
200
+ /bin/bash -c "$script"
206
201
- uses : actions/upload-artifact@v4
207
202
with :
208
203
name : pip-wheel-${{ matrix.python }}
209
- path : dist /*
204
+ path : wheelhouse /*
210
205
if-no-files-found : error
211
206
build-sdist :
212
207
name : Build sdist
@@ -220,10 +215,6 @@ jobs:
220
215
with :
221
216
python-version : ' 3.11'
222
217
cache : ' pip'
223
- - name : Install Protoc
224
- uses : arduino/setup-protoc@v3
225
- with :
226
- version : " 25.x"
227
218
- name : Install build tool
228
219
run : pip install build
229
220
- name : Building package
@@ -236,8 +227,16 @@ jobs:
236
227
publish :
237
228
name : Publish to PyPi
238
229
if : github.repository == 'Eeems-Org/remarkable-update-fuse' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
239
- needs : [build-sdist]
230
+ needs :
231
+ - build-sdist
232
+ - build-wheel
240
233
runs-on : ubuntu-latest
234
+ strategy :
235
+ matrix :
236
+ artifact :
237
+ - ' pip-sdist'
238
+ - ' pip-wheel-3.11'
239
+ - ' pip-wheel-3.12'
241
240
permissions :
242
241
id-token : write
243
242
contents : write
@@ -249,7 +248,7 @@ jobs:
249
248
id : download
250
249
uses : actions/download-artifact@v4
251
250
with :
252
- name : pip-sdist
251
+ name : ${{ matrix.artifact }}
253
252
- name : Publish package distributions to PyPI
254
253
uses : pypa/gh-action-pypi-publish@release/v1
255
254
with :
@@ -274,7 +273,6 @@ jobs:
274
273
- ' pip-sdist'
275
274
- ' pip-wheel-3.11'
276
275
- ' pip-wheel-3.12'
277
- - ' pip-wheel-3.13'
278
276
permissions :
279
277
contents : write
280
278
steps :
0 commit comments