Skip to content

Commit c638561

Browse files
committed
.github: workflow updated, add job for testing full wheel building
1 parent 0d0525a commit c638561

1 file changed

Lines changed: 36 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,40 @@ on:
99
branches: [ master ]
1010

1111
jobs:
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:
@@ -44,7 +76,8 @@ jobs:
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:

0 commit comments

Comments
 (0)