@@ -17,27 +17,33 @@ jobs:
1717 strategy :
1818 fail-fast : false
1919 matrix :
20- ghc : ["9.4.2 ", "9.2.4 ", "9.0.2 ", "8.10.7 ", "8.8.4 ", "8.6.5 "]
20+ ghc : ["9.8.1 ", "9.6.3 ", "9.4.8 ", "9.2.8 ", "9.0.2 ", "8.10.7 "]
2121 os : [ubuntu-latest, macOS-latest, windows-latest]
2222 exclude :
23- - ghc : " 9.4.2"
24- os : windows-latest
23+ - os : windows-latest
24+ ghc : " 9.4.2"
25+
26+ env :
27+ # Modify this value to "invalidate" the cabal cache.
28+ CABAL_CACHE_VERSION : " 2024-01-05"
2529
2630 steps :
2731 - uses : actions/checkout@v2
2832
29- - uses : haskell/ actions/setup@v1
33+ - uses : haskell- actions/setup@v2
3034 id : setup-haskell
3135 with :
3236 ghc-version : ${{ matrix.ghc }}
33- cabal-version : 3.6 .2.0
37+ cabal-version : ' 3.10 .2.1 '
3438
3539 - name : Set some window specific things
3640 if : matrix.os == 'windows-latest'
3741 run : echo 'EXE_EXT=.exe' >> $GITHUB_ENV
3842
3943 - name : Configure project
40- run : cabal configure --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+
44+ run : |
45+ cabal configure --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+
46+ cabal build all --enable-tests --enable-benchmarks --dry-run
4147
4248 - name : Cabal cache over S3
4349 uses : action-works/cabal-cache-s3@v1
4955 dist-dir : dist-newstyle
5056 store-path : ${{ steps.setup-haskell.outputs.cabal-store }}
5157 threads : 16
52- archive-uri : ${{ secrets.BINARY_CACHE_URI }}
58+ archive-uri : ${{ secrets.BINARY_CACHE_URI }}/${{ env.CABAL_CACHE_VERSION }}/${{ runner.os }}/${{ matrix.cabal }}/${{ matrix.ghc }}
5359 skip : " ${{ secrets.BINARY_CACHE_URI == '' }}"
5460
5561 - name : Cabal cache over HTTPS
@@ -58,18 +64,14 @@ jobs:
5864 dist-dir : dist-newstyle
5965 store-path : ${{ steps.setup-haskell.outputs.cabal-store }}
6066 threads : 16
61- archive-uri : https://cache.haskellworks.io/archive
67+ archive-uri : https://cache.haskellworks.io/${{ env.CABAL_CACHE_VERSION }}/${{ runner.os }}/${{ matrix.cabal }}/${{ matrix.ghc }}
6268 skip : " ${{ secrets.BINARY_CACHE_URI != '' }}"
6369
6470 - name : Build
65- # Try building it twice in case of flakey builds on Windows
66- run : |
67- cabal build all --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+ || \
68- cabal build all --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+ -j1
71+ run : cabal build all --enable-tests --enable-benchmarks
6972
7073 - name : Test
71- run : |
72- cabal test all --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+
74+ run : cabal test all --enable-tests --enable-benchmarks
7375
7476 check :
7577 needs : build
0 commit comments