File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 branches : [ master ]
1010
1111jobs :
12- package-build :
13- name : Build package
12+ build-wheel-test :
13+ name : Test building wheel packages on linux
14+ strategy :
15+ matrix :
16+ arch : [x86_64, x86, aarch64, armv7]
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - name : Setup alpine chroot for ${{ matrix.arch }}
21+ uses : jirutka/setup-alpine@v1
22+ with :
23+ branch : edge
24+ arch : ${{ matrix.arch }}
25+ packages : >
26+ build-base
27+ curl
28+ python3
29+
30+ - name : Create build env
31+ run : python -m venv ./venv && . ./venv/bin/activate && pip install --upgrade pip build
32+ shell : alpine.sh {0}
33+
34+ - name : Build package
35+ run : . ./venv/bin/activate && python -m build
36+ shell : alpine.sh {0}
37+
38+ - name : Store the distribution packages
39+ uses : actions/upload-artifact@v4
40+ with :
41+ name : test-packages-linux-${{ matrix.arch }}
42+ path : dist/
43+
44+ build-sdist :
45+ name : Build sdist package
1446 runs-on : ubuntu-latest
1547
1648 steps :
4476 name : Publish Python distribution to PyPI
4577 if : ${{ startsWith(github.event.ref, 'refs/tags/v') }}
4678 needs :
47- - package-build
79+ - build-sdist
80+ - build-wheel-test
4881 runs-on : ubuntu-latest
4982
5083 environment :
You can’t perform that action at this time.
0 commit comments