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 f913945 commit 1c12cbc
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1c12cbc

Please sign in to comment.