@@ -24,37 +24,14 @@ jobs:
2424 fail-fast : false
2525 matrix :
2626 include :
27- - { os: ubuntu-22.04, target: linux, platform: linux-x64, container: 'alpine:latest', libc: musl }
2827 - { os: ubuntu-22.04, target: linux, platform: linux-x64 }
2928 - { os: ubuntu-22.04, target: linux, platform: linux-arm64 }
3029 - { os: macos-latest, target: darwin, platform: darwin-x64 }
3130 - { os: macos-latest, target: darwin, platform: darwin-arm64 }
3231 - { os: windows-latest, target: windows, platform: win32-ia32 }
3332 - { 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- sudo apt-get update
56- sudo apt-get install -y git
57-
5835 - uses : actions/checkout@v4
5936 with :
6037 submodules : recursive
7451 run : |
7552 ./make.sh ${{ matrix.platform }}
7653
77- - name : Build for x64 glibc
78- if : ${{ matrix.platform == 'linux-x64' && matrix.libc != 'musl' }}
79- run : |
80- docker build -t ubuntu-18.04 .
81- docker run --rm -v $(pwd):$(pwd) -w $(pwd) ubuntu-18.04 bash -c './make.sh'
82-
8354 - name : Setting up workflow variables
8455 id : vars
8556 shell : bash
10071
10172 # Package name w/ version
10273 PKG_BASENAME="${{ env.PROJECT }}-${PKG_VERSION}-${{ matrix.platform }}"
103- if [[ "${{ matrix.libc }}" = musl ]]; then
104- PKG_BASENAME="${PKG_BASENAME}-${{matrix.libc}}"
105- fi
10674
10775 # Full name of the tarball asset
10876 PKG_NAME="${PKG_BASENAME}.${PKG_SUFFIX}"
0 commit comments