From b5d72bfb243e14be2b505ad92cd8f7b44937fd42 Mon Sep 17 00:00:00 2001 From: John Ky Date: Fri, 12 Jan 2024 21:40:35 +1100 Subject: [PATCH] CI: Limit to a single Haskell job on macOS --- .github/workflows/haskell.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 367417ad33..3b22b71f09 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -11,12 +11,16 @@ jobs: strategy: fail-fast: false matrix: - ghc: ["8.10.7", "9.2.7", "9.6.2"] - cabal: ["3.10.1.0"] - os: [ubuntu-latest, macos-latest, windows-latest] - exclude: - - ghc: "9.2.7" - os: macos-latest + # If you edit these versions, make sure the version in the lonely macos-latest job below is updated accordingly + ghc: ["9.2.8", "9.6.3"] + cabal: ["3.10.2.1"] + os: [windows-latest, ubuntu-latest] + include: + # Using include, to make sure there will only be one macOS job, even if the matrix gets expanded later on. + # We want a single job, because macOS runners are scarce. + - os: macos-latest + cabal: "3.10.2.1" + ghc: "9.6.3" env: # Modify this value to "invalidate" the cabal cache.