diff --git a/.github/workflows/zig-build.yml b/.github/workflows/zig-build.yml index 395e39d9c..d0b926c77 100644 --- a/.github/workflows/zig-build.yml +++ b/.github/workflows/zig-build.yml @@ -9,23 +9,22 @@ on: [push, pull_request] jobs: build: - name: ${{ matrix.ttriple }} + name: ${{ matrix.ttriple }} dll:${{ matrix.shared_libs }} runs-on: ubuntu-latest strategy: fail-fast: false matrix: ttriple: [ aarch64-linux-musl, wasm32-wasi, x86_64-linux-gnu.2.27, x86_64-linux-musl, x86_64-windows-gnu ] + shared_libs: [ off, on ] steps: - uses: actions/checkout@v4 - name: "Install zig" run: | - curl -o zig.tar.xz https://ziglang.org/builds/zig-linux-x86_64-0.12.0-dev.1814+5c0d58b71.tar.xz - mkdir -p zig - cd zig - tar Jx --strip-components=1 -f ../zig.tar.xz - cd .. + mkdir zig && cd zig && curl https://ziglang.org/builds/zig-linux-x86_64-0.12.0-dev.1814+5c0d58b71.tar.xz | tar Jx --strip-components=1 && cd .. - name: Build - run: | - zig/zig build -Dtarget=${{ matrix.ttriple }} + run: > + zig/zig build + -Dtarget=${{ matrix.ttriple }} + -Dbuild_shared_libs=${{ matrix.shared_libs }}