|
4 | 4 |
|
5 | 5 | jobs: |
6 | 6 | build: |
7 | | - strategy: |
8 | | - matrix: |
9 | | - include: |
10 | | - - { target: aarch64-windows-gnu, runner: ubuntu-24.04, can_test: false } |
11 | | - - { target: aarch64-linux-musl, runner: ubuntu-24.04-arm, can_test: false } |
12 | | - - { target: aarch64-macos-none, runner: macos-26, can_test: true } |
13 | | - - { target: x86_64-windows-gnu, runner: ubuntu-24.04, can_test: false } |
14 | | - - { target: x86_64-linux-musl, runner: ubuntu-24.04, can_test: true } |
15 | | - - { target: x86_64-macos-none, runner: macos-26-intel, can_test: true } |
16 | | - - { target: arm-linux-musleabihf, runner: ubuntu-24.04-arm, can_test: true } |
17 | | - - { target: x86-windows-gnu, runner: ubuntu-24.04, can_test: false } |
18 | | - - { target: x86-linux-musl, runner: ubuntu-24.04, can_test: true } |
19 | | - runs-on: ${{ matrix.runner }} |
| 7 | + runs-on: ubuntu-latest |
20 | 8 | env: |
21 | 9 | ZIG_TARGET: ${{ matrix.target }} |
| 10 | + strategy: |
| 11 | + matrix: |
| 12 | + target: [aarch64-windows-gnu, aarch64-linux-musl, aarch64-macos-none, x86_64-windows-gnu, x86_64-linux-musl, x86_64-macos-none, arm-linux-musleabihf, x86-windows-gnu, x86-linux-musl] |
22 | 13 | steps: |
23 | 14 | - name: Checkout |
24 | 15 | uses: actions/checkout@main |
25 | 16 | with: |
| 17 | + path: ${{ github.workspace }} |
26 | 18 | submodules: true |
27 | 19 |
|
28 | 20 | - name: Setup Zig |
|
46 | 38 | mkdir build |
47 | 39 | cd build |
48 | 40 | cmake .. -DCMAKE_BUILD_TYPE=MinSizeRel \ |
49 | | - -DCMAKE_C_FLAGS="-D_LARGEFILE64_SOURCE=1 ${STATIC_FLAG}" \ |
50 | | - -DCMAKE_CXX_FLAGS="-D_LARGEFILE64_SOURCE=1 ${STATIC_FLAG}" \ |
| 41 | + -DCMAKE_C_FLAGS="${STATIC_FLAG} -D_LARGEFILE64_SOURCE=1" \ |
| 42 | + -DCMAKE_CXX_FLAGS="${STATIC_FLAG} -D_LARGEFILE64_SOURCE=1" \ |
51 | 43 | -DCMAKE_EXE_LINKER_FLAGS="${STATIC_FLAG}" \ |
52 | 44 | -DCMAKE_C_COMPILER="${TOOLCHAIN}/bin/cc" \ |
53 | 45 | -DCMAKE_CXX_COMPILER="${TOOLCHAIN}/bin/c++" \ |
|
60 | 52 | -DCMAKE_RC_COMPILER="${TOOLCHAIN}/bin/rc" |
61 | 53 | cmake --build . --config MinSizeRel -j"${JOBS}" |
62 | 54 |
|
63 | | - - name: Test |
64 | | - if: matrix.can_test |
65 | | - shell: bash |
66 | | - run: | |
67 | | - BINARY=$(/usr/bin/find build -maxdepth 1 -name "webify*" -type f | head -1) |
68 | | - "$BINARY" --version |
69 | | - "$BINARY" vcr.ttf |
70 | | -
|
71 | 55 | - name: Upload Artifact |
72 | 56 | uses: actions/upload-artifact@v4 |
73 | 57 | with: |
|
0 commit comments