@@ -24,59 +24,22 @@ jobs:
2424 fail-fast : false
2525 matrix :
2626 include :
27- - { os: ubuntu-22.04, target: linux, platform: linux-x64, container: 'alpine:latest', libc: musl }
28- - { os: ubuntu-22.04, target: linux, platform: linux-x64 }
29- - { os: ubuntu-22.04, target: linux, platform: linux-arm64 }
30- - { os: macos-latest, target: darwin, platform: darwin-x64 }
31- - { os: macos-latest, target: darwin, platform: darwin-arm64 }
32- - { os: windows-latest, target: windows, platform: win32-ia32 }
33- - { os: windows-latest, target: windows, platform: win32-x64 }
27+ - { os: ubuntu-22.04, target: linux, platform: linux-x64 }
28+ - { os: ubuntu-24.04-arm, target: linux, platform: linux-arm64 }
29+ - { os: macos-latest, target: darwin, platform: darwin-x64 }
30+ - { os: macos-latest, target: darwin, platform: darwin-arm64 }
31+ - { os: windows-latest, target: windows, platform: win32-ia32 }
32+ - { os: windows-latest, target: windows, platform: win32-x64 }
3433 runs-on : ${{ matrix.os }}
35- container :
36- image : ${{ matrix.container }}
3734 steps :
38- - name : Install aarch64-linux-gnu
39- if : ${{ matrix.platform == 'linux-arm64' && matrix.libc != 'musl' }}
40- run : |
41- sudo apt-get update
42- sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
43-
44- - name : Prepare container for musl
45- if : ${{ matrix.target == 'linux' && matrix.libc == 'musl' }}
46- run : |
47- apk update
48- apk add git ninja bash build-base nodejs linux-headers
49-
50- - name : Prepare for Linux
51- if : ${{ matrix.target == 'linux' && matrix.libc != 'musl' }}
52- run : |
53- sudo apt update
54- sudo apt install ninja-build
55-
5635 - uses : actions/checkout@v4
5736 with :
5837 submodules : recursive
5938
60- - name : Build for Windows
61- if : ${{ matrix.target == 'windows' }}
62- run : .\make.bat ${{ matrix.platform }}
39+ - uses : actboy168/setup-luamake@master
6340
64- - name : Build for Linux
65- if : ${{ matrix.target == 'linux' }}
66- run : |
67- ./make.sh ${{ matrix.platform }}
68-
69- - name : Build for macOS
70- if : ${{ matrix.target == 'darwin' }}
71- run : |
72- brew install ninja
73- ./make.sh ${{ matrix.platform }}
74-
75- - name : Build for x64 glibc
76- if : ${{ matrix.platform == 'linux-x64' && matrix.libc != 'musl' }}
77- run : |
78- docker build -t ubuntu-18.04 .
79- docker run --rm -v $(pwd):$(pwd) -w $(pwd) ubuntu-18.04 bash -c './make.sh'
41+ - name : Build
42+ run : luamake -platform ${{ matrix.platform }}
8043
8144 - name : Setting up workflow variables
8245 id : vars
9861
9962 # Package name w/ version
10063 PKG_BASENAME="${{ env.PROJECT }}-${PKG_VERSION}-${{ matrix.platform }}"
101- if [[ "${{ matrix.libc }}" = musl ]]; then
102- PKG_BASENAME="${PKG_BASENAME}-${{matrix.libc}}"
103- fi
10464
10565 # Full name of the tarball asset
10666 PKG_NAME="${PKG_BASENAME}.${PKG_SUFFIX}"
0 commit comments