Skip to content

Commit

Permalink
Test with several zig versions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
agagniere committed Sep 16, 2024
1 parent a0ea8e5 commit 1b995e7
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,31 @@ on:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
zig-version: ["master", "0.13.0"]
os: [ubuntu-latest]
build-options: ["-Ddisable-ssl -Ddisable-zlib -Ddisable-zstd"]
include:
- zig-version: "master"
os: ubuntu-latest
build-options: ""

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

0 comments on commit 1b995e7

Please sign in to comment.