File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 55
66name : CI
77
8- on :
9- pull_request :
8+ on :
9+ pull_request :
1010 branches :
1111 - main
1212 push :
@@ -20,7 +20,7 @@ concurrency:
2020jobs :
2121 generate-matrix :
2222 name : " Generate matrix from cabal"
23- outputs :
23+ outputs :
2424 matrix : ${{ steps.set-matrix.outputs.matrix }}
2525 runs-on : ubuntu-latest
2626 steps :
@@ -46,21 +46,23 @@ jobs:
4646 id : setup
4747 with :
4848 ghc-version : ${{ matrix.ghc }}
49- cabal-version : ' latest'
49+ cabal-version : " latest"
5050 cabal-update : true
5151 - name : Configure the build
5252 run : |
53- cabal configure --enable-tests --disable-documentation
53+ cabal configure --enable-tests --enable-benchmarks -- disable-documentation
5454 cabal build all --dry-run
55+
5556 - name : Restore cached dependencies
5657 uses : actions/cache/restore@v4
5758 id : cache
5859 env :
5960 key : ${{ runner.os }}-ghc-${{ steps.setup.outputs.ghc-version }}-cabal-${{ steps.setup.outputs.cabal-version }}
6061 with :
6162 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+
6466 - name : Install dependencies
6567 if : steps.cache.outputs.cache-hit != 'true'
6668 run : cabal build all --only-dependencies
You can’t perform that action at this time.
0 commit comments