From 869cfef18960575a0d7e4d84cb51f4d0790571e8 Mon Sep 17 00:00:00 2001 From: Potato Hatsue <1793913507@qq.com> Date: Tue, 19 Sep 2023 16:50:12 -0400 Subject: [PATCH] Pair cabal version and ghc version in CI --- .github/workflows/ci.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4bc4fc..168aa67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,25 +11,21 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - cabal: ["3.2.0.0", "3.4.0.0", "3.6.0.0", "3.8.0.0"] - ghc: ["8.10.7", "9.0.2", "9.2.2", "9.4.6"] os: [ubuntu-latest] - exclude: + include: - cabal: "3.2.0.0" - ghc: "9.0.2" - - cabal: "3.2.0.0" - ghc: "9.2.2" - - cabal: "3.4.0.0" - ghc: "9.2.2" - - cabal: "3.6.0.0" ghc: "8.10.7" - - cabal: "3.6.0.0" + - cabal: "3.4.0.0" ghc: "9.0.2" + - cabal: "3.6.0.0" + ghc: "9.2.2" + - cabal: "3.8.0.0" + ghc: "9.4.6" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master' - - uses: haskell/actions/setup@v1 + - uses: haskell/actions/setup@v2 name: Setup Haskell with: ghc-version: ${{ matrix.ghc }}