Skip to content

Commit

Permalink
Refactor CI workflow matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewFluet committed Dec 31, 2024
1 parent 4db974a commit 96d3712
Showing 1 changed file with 37 additions and 11 deletions.
48 changes: 37 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,49 @@ jobs:
strategy:
fail-fast: false
matrix:
runner: [ubuntu-24.04, macos-13, macos-14, windows-2022]
cc: ["gcc", "clang"]
codegen: ["amd64", "c", "llvm"]
exclude:
- runner: macos-13
include:
- runner: "ubuntu-24.04"
cc: "gcc"
- runner: macos-14
codegen: "amd64"
- runner: "ubuntu-24.04"
cc: "gcc"
- runner: macos-14
codegen: "c"
- runner: "ubuntu-24.04"
cc: "clang"
codegen: "amd64"
- runner: windows-2022
- runner: "ubuntu-24.04"
cc: "clang"
codegen: "c"
- runner: "ubuntu-24.04"
cc: "clang"
codegen: "llvm"

- runner: "macos-13"
cc: "clang"
codegen: "amd64"
- runner: "macos-13"
cc: "clang"
codegen: "c"
- runner: "macos-13"
cc: "clang"
- runner: windows-2022
codegen: "llvm"
- cc: "gcc"

- runner: "macos-14"
cc: "clang"
codegen: "c"
- runner: "macos-14"
cc: "clang"
codegen: "llvm"

- runner: windows-2022
msystem: mingw64
cc: "gcc"
codegen: "amd64"
- runner: windows-2022
msystem: mingw64
cc: "gcc"
codegen: "c"

runs-on: ${{ matrix.runner }}

defaults:
Expand All @@ -43,7 +69,7 @@ jobs:
if: ${{ startsWith(matrix.runner, 'windows') }}
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
msystem: ${{ matrix.msystem }}
update: false
install: >-
base-devel
Expand Down

0 comments on commit 96d3712

Please sign in to comment.