Skip to content

Commit 4ce149a

Browse files
committed
.github: workflow updated: add linux builds
1 parent 32a3cee commit 4ce149a

1 file changed

Lines changed: 33 additions & 3 deletions

File tree

.github/workflows/publish.yml

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

1111
jobs:
12-
lua-windows-build:
12+
lua-windows-builds:
1313
name: Build lua for windows
1414
runs-on: ubuntu-latest
1515

@@ -30,11 +30,41 @@ jobs:
3030
uses: actions/upload-artifact@v4
3131
with:
3232
name: lua-windows
33-
path: lua/lua-*.exe
33+
path: lua/lua-windows-*.exe
34+
35+
lua-linux-builds:
36+
name: Build lua for linux
37+
strategy:
38+
matrix:
39+
arch: [x86_64, x86, aarch64, armhf, armv7]
40+
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
56+
shell: alpine.sh {0}
57+
58+
- name: Store the distribution packages
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: lua-linux
62+
path: lua/lua-linux-*
3463

3564
package-build:
3665
needs:
37-
- lua-windows-build
66+
- lua-windows-builds
67+
- lua-linux-builds
3868
name: Build python distribution
3969
runs-on: ubuntu-latest
4070

0 commit comments

Comments
 (0)