Skip to content

Commit 3aa1f55

Browse files
committed
.github: workflow updated, prepare to build package wheels from alpine-chroots of different archs
1 parent 963de03 commit 3aa1f55

1 file changed

Lines changed: 19 additions & 62 deletions

File tree

.github/workflows/publish.yml

Lines changed: 19 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -9,85 +9,42 @@ on:
99
branches: [ master ]
1010

1111
jobs:
12-
lua-windows-builds:
13-
name: Build lua for windows
14-
runs-on: ubuntu-latest
15-
16-
steps:
17-
- name: Install packages
18-
run: sudo apt-get install --no-install-recommends -y gcc-mingw-w64 mingw-w64-i686-dev mingw-w64-x86-64-dev build-essential
19-
20-
- name: Check out repository code
21-
uses: actions/checkout@v4
22-
23-
- name: Build LUA for windows i686
24-
run: cd lua && ./download-lua.sh && ./build-mingw-i686.sh
25-
26-
- name: Build LUA for windows x86_64
27-
run: cd lua && ./download-lua.sh && ./build-mingw-x86_64.sh
28-
29-
- name: Store the distribution packages
30-
uses: actions/upload-artifact@v4
31-
with:
32-
name: lua-windows
33-
path: lua/lua-windows-*.exe
34-
35-
lua-linux-builds:
36-
name: Build lua for linux
12+
package-build:
13+
name: Build python distribution
3714
strategy:
3815
matrix:
3916
arch: [x86_64, x86, aarch64, armv7]
4017
runs-on: ubuntu-latest
41-
steps:
42-
- uses: jirutka/setup-alpine@v1
43-
with:
44-
branch: edge
45-
arch: ${{ matrix.arch }}
46-
packages: >
47-
build-base
48-
curl
49-
bash
50-
51-
- name: Check out repository code
52-
uses: actions/checkout@v4
53-
54-
- name: Build LUA for linux
55-
run: cd lua && ./download-lua.sh && ./build-linux.sh ${{ matrix.arch }}
56-
shell: alpine.sh {0}
57-
58-
- name: Store the distribution packages
59-
uses: actions/upload-artifact@v4
60-
with:
61-
name: lua-linux-${{ matrix.arch }}
62-
path: lua/lua-linux-*
63-
64-
package-build:
65-
needs:
66-
- lua-windows-builds
67-
- lua-linux-builds
68-
name: Build python distribution
69-
runs-on: ubuntu-latest
7018

7119
steps:
72-
- uses: actions/checkout@v4
20+
- name: Setup alpine chroot for ${{ matrix.arch }}
21+
uses: jirutka/setup-alpine@v1
7322
with:
74-
persist-credentials: false
75-
76-
- name: Set up Python
77-
uses: actions/setup-python@v5
23+
branch: edge
24+
arch: ${{ matrix.arch }}
25+
packages: >
26+
build-base
27+
curl
28+
bash
29+
python3
30+
31+
- name: Check out repository code
32+
uses: actions/checkout@v4
7833
with:
79-
python-version: "3.x"
34+
persist-credentials: false
8035

8136
- name: Install build dependencies
8237
run: python -m pip install --upgrade pip build
38+
shell: alpine.sh {0}
8339

8440
- name: Build package
8541
run: python -m build
42+
shell: alpine.sh {0}
8643

8744
- name: Store the distribution packages
8845
uses: actions/upload-artifact@v4
8946
with:
90-
name: python-package-distributions
47+
name: package-linux-${{ matrix.arch }}
9148
path: dist/
9249

9350
publish-to-pypi:
@@ -108,7 +65,7 @@ jobs:
10865
- name: Download all the dists
10966
uses: actions/download-artifact@v4
11067
with:
111-
name: python-package-distributions
68+
name: package-*
11269
path: dist/
11370

11471
- name: Publish distribution to PyPI

0 commit comments

Comments
 (0)