From 1c12cbc4831011058eb4661cf4fadf1aa27d793e Mon Sep 17 00:00:00 2001 From: Antoine Date: Mon, 16 Sep 2024 23:24:33 +0200 Subject: [PATCH] Test with several zig versions in CI --- .github/workflows/ci.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aba3287..95b7e4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,14 +11,35 @@ on: jobs: build: - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + zig-version: [master] + os: [ubuntu-latest] + build-options: ["", "--disable-ssl --disable-zlib --disable-zstd"] + include: + - zig-version: "0.12.1" + os: ubuntu-latest + - zig-version: "0.13.0" + os: ubuntu-latest + - zig-version: "master" + os: macos-latest + build-options: "--disable-ssl" + + runs-on: ${{ matrix.os }} steps: - name: Check out repository uses: actions/checkout@v4 + - name: Set up Zig uses: mlugg/setup-zig@v1 + with: + version: ${{ matrix.zig-version }} + use-cache: false + - name: Run `build` - run: zig build + run: zig build ${{ matrix.build-options }} --summary all + - name: Build example programs - run: zig build examples + run: zig build $${{ matrix.build-options }} examples --summary all