Skip to content

Commit

Permalink
Test shared & static
Browse files Browse the repository at this point in the history
  • Loading branch information
plajjan committed Dec 18, 2023
1 parent 31ca1fd commit 816f40f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/zig-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 816f40f

Please sign in to comment.