forked from libfuse/python-fuse
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (74 loc) · 2.07 KB
/
wheels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Python wheels
on:
push:
tags:
- "*"
jobs:
sdist:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install libfuse-dev and pkg-config
run: sudo apt install -y libfuse-dev pkg-config
- name: Install Python build dependencies
run: python -m pip install --upgrade build
- name: Build sdist
run: python -m build --sdist
- uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz
if-no-files-found: error
retention-days: 2
wheel:
runs-on: ubuntu-20.04
env:
TAGS: cp310-cp310 cp311-cp311 cp312-cp312
strategy:
matrix:
target:
# https://quay.io/organization/pypa
- [ manylinux_2_28, x86_64 ]
- [ manylinux_2_28, aarch64 ]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build Python wheels
env:
POLICY: ${{ matrix.target[0] }}
PLATFORM: ${{ matrix.target[1] }}
run: make manylinux POLICY="$POLICY" PLATFORM="$PLATFORM" TAGS="$TAGS"
# https://github.com/actions/upload-artifact
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ join(matrix.target, '-') }}
path: wheelhouse/*.whl
if-no-files-found: error
retention-days: 2
merge-artifacts:
name: Download and create one artifact from all jobs
needs:
- sdist
- wheel
runs-on: ubuntu-20.04
steps:
- name: Download sdist artifact
uses: actions/download-artifact@v4
with:
path: dist
name: sdist
- name: Download wheel artifacts
uses: actions/download-artifact@v4
with:
path: dist
pattern: wheels-*
merge-multiple: true
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist
if-no-files-found: error