Skip to content

Commit 8e6952f

Browse files
committed
Do not use a build matrix for Cabal job
1 parent 238b10c commit 8e6952f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ jobs:
5454

5555
cabal:
5656
name: 'Cabal'
57-
strategy:
58-
matrix:
59-
ghc: ["8.10.4"]
6057
runs-on: ubuntu-latest
58+
env:
59+
ghc_version: "8.10.4"
6160
steps:
6261
- name: Install prerequisites
6362
run: |
@@ -72,14 +71,14 @@ jobs:
7271
- uses: haskell/actions/setup@v1
7372
id: setup-haskell-cabal
7473
with:
75-
ghc-version: ${{ matrix.ghc }}
74+
ghc-version: ${{ env.ghc_version }}
7675
cabal-version: "3.2"
7776

7877
- name: Cache Cabal store
7978
uses: actions/cache@v2
8079
with:
8180
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
82-
key: ${{ runner.os }}-ghc-${{ matrix.ghc }}
81+
key: ${{ runner.os }}-ghc-${{ env.ghc_version }}
8382

8483
- name: Build
8584
run: cabal v2-build --enable-tests --enable-benchmarks all

0 commit comments

Comments
 (0)