File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 5
5
6
6
name : CI
7
7
8
- on :
9
- pull_request :
8
+ on :
9
+ pull_request :
10
10
branches :
11
11
- main
12
12
push :
@@ -20,7 +20,7 @@ concurrency:
20
20
jobs :
21
21
generate-matrix :
22
22
name : " Generate matrix from cabal"
23
- outputs :
23
+ outputs :
24
24
matrix : ${{ steps.set-matrix.outputs.matrix }}
25
25
runs-on : ubuntu-latest
26
26
steps :
@@ -46,21 +46,23 @@ jobs:
46
46
id : setup
47
47
with :
48
48
ghc-version : ${{ matrix.ghc }}
49
- cabal-version : ' latest'
49
+ cabal-version : " latest"
50
50
cabal-update : true
51
51
- name : Configure the build
52
52
run : |
53
- cabal configure --enable-tests --disable-documentation
53
+ cabal configure --enable-tests --enable-benchmarks -- disable-documentation
54
54
cabal build all --dry-run
55
+
55
56
- name : Restore cached dependencies
56
57
uses : actions/cache/restore@v4
57
58
id : cache
58
59
env :
59
60
key : ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-cabal-${{ steps.setup.outputs.cabal-version }}
60
61
with :
61
62
path : ${{ steps.setup.outputs.cabal-store }}
62
- key : ${{ env.key }}-plan-${{ hashFiles('**/plan.json') }}
63
- restore-keys : ${{ env.key }}-
63
+ key : v1-${{ env.key }}-plan-${{ hashFiles('**/dist-newstyle/cache/plan.json') }}
64
+ restore-keys : v1-ghc-deps-${{ env.key }}-
65
+
64
66
- name : Install dependencies
65
67
if : steps.cache.outputs.cache-hit != 'true'
66
68
run : cabal build all --only-dependencies
You can’t perform that action at this time.
0 commit comments