From 2a9625d550eefc3a9b1a43d342ad655f563f8241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e?= Date: Fri, 26 Apr 2024 09:05:48 +0100 Subject: [PATCH] Update CI version matrix (#77) * ci: tweak versions matrix * tweak ifs * ci: different way to use legacy versions * clearer test variant name * fixup! clearer test variant name * syntax? --- .github/workflows/ci.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8e3648..d0c8807 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,23 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - zig-version: [0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0] + os: [ubuntu-latest, macos-12, macos-latest, windows-latest] + zig-version: [0.11.0, 0.12.0] + test-variant: [modern] include: - - os: ubuntu-latest - zig-version: 0.5.0 + - { os: ubuntu-latest, zig-version: 0.5.0, test-variant: legacy } + - { os: ubuntu-latest, zig-version: 0.7.0, test-variant: legacy } + - { os: ubuntu-latest, zig-version: 0.8.0, test-variant: legacy } + - { os: ubuntu-latest, zig-version: 0.9.0, test-variant: legacy } + - { os: ubuntu-latest, zig-version: 0.10.0, test-variant: legacy } + - { os: macos-12, zig-version: 0.7.0, test-variant: legacy } + - { os: macos-12, zig-version: 0.8.0, test-variant: legacy } + - { os: macos-12, zig-version: 0.9.0, test-variant: legacy } + - { os: macos-12, zig-version: 0.10.0, test-variant: legacy } + - { os: windows-latest, zig-version: 0.7.0, test-variant: legacy } + - { os: windows-latest, zig-version: 0.8.0, test-variant: legacy } + - { os: windows-latest, zig-version: 0.9.0, test-variant: legacy } + - { os: windows-latest, zig-version: 0.10.0, test-variant: legacy } runs-on: ${{matrix.os}} steps: - name: Checkout sources @@ -31,10 +43,10 @@ jobs: with: version: ${{matrix.zig-version}} - name: Run tests (zig up to v0.10.x) - if: ${{ !startsWith(matrix.zig-version, '0.11.') }} + if: ${{ matrix.test-variant == 'legacy' }} run: zig build test working-directory: test/v0.10 - name: Run tests (zig v0.11.x) - if: ${{ startsWith(matrix.zig-version, '0.11.') }} + if: ${{ matrix.test-variant == 'modern' }} run: zig build test working-directory: test/v0.11