File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed
Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -11,31 +11,26 @@ jobs:
1111 matrix :
1212 os : [ubuntu-latest, macOS-latest, windows-latest]
1313 ghc :
14- - 8.8.4
15- - 8.10.7
16- - 9.0.1
17- - 9.2.1
14+ - 9.2.7
15+ - 9.4.4
16+ - 9.6.1
1817 fail-fast : false
19- continue-on-error : ${{ startsWith(matrix.os, 'windows') && startsWith(matrix.ghc, '9.2') }}
20-
18+
2119 steps :
2220 - uses : actions/checkout@v2
2321
24- - uses : haskell/actions/setup@v1
22+ - uses : haskell/actions/setup@v2
2523 id : setup-haskell-cabal
2624 name : Setup Haskell
2725 with :
2826 ghc-version : ${{ matrix.ghc }}
2927
30- - name : Freeze
31- run : |
32- cabal freeze
33-
34- - uses : actions/cache@v2
35- name : Cache ~/.cabal/store
28+ - name : Restore cache
29+ uses : actions/cache/restore@v3
3630 with :
31+ key : ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
3732 path : ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
38- key : ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
33+ restore-keys : ${{ runner.os }}-${{ matrix.ghc }}-
3934
4035 - name : Build
4136 run : |
4540 - name : Test
4641 run : |
4742 cabal test all
43+
44+ - name : Save cache
45+ uses : actions/cache/save@v3
46+ if : always()
47+ with :
48+ key : ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
49+ path : ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
You can’t perform that action at this time.
0 commit comments