@@ -17,17 +17,24 @@ jobs:
1717 strategy :
1818 fail-fast : false
1919 matrix :
20- ghc : ["9.2.2", "9.0.2", "8.10.7", "8.8.4", "8.6.5"]
21- os : [ubuntu-latest, windows-latest]
20+ ghc : ["9.8.1", "9.6.3", "9.4.8", "9.2.8", "9.0.2", "8.10.7"]
21+ os : [ubuntu-latest, macOS-latest, windows-latest]
22+ exclude :
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"
2229
2330 steps :
2431 - uses : actions/checkout@v2
2532
26- - uses : haskell/ actions/setup@v1
33+ - uses : haskell- actions/setup@v2
2734 id : setup-haskell
2835 with :
2936 ghc-version : ${{ matrix.ghc }}
30- cabal-version : 3.6 .2.0
37+ cabal-version : ' 3.10 .2.1 '
3138
3239 - name : Set some window specific things
3340 if : matrix.os == 'windows-latest'
3643 - name : Configure project
3744 run : |
3845 cabal configure --enable-tests --enable-benchmarks --write-ghc-environment-files=ghc8.4.4+
39- # APPEND=1 ./scripts/gen-cabal-project-local.sh
40- # echo "cabal.project.local:"
41- # cat cabal.project.local
46+ cat >> cabal.project.local <<EOF
47+ package bits-extra
48+ flags: +bmi2
49+ EOF
50+ cabal build all --enable-tests --enable-benchmarks --dry-run
4251
4352 - name : Cabal cache over S3
4453 uses : action-works/cabal-cache-s3@v1
5059 dist-dir : dist-newstyle
5160 store-path : ${{ steps.setup-haskell.outputs.cabal-store }}
5261 threads : 16
53- archive-uri : ${{ secrets.BINARY_CACHE_URI }}
62+ archive-uri : ${{ secrets.BINARY_CACHE_URI }}/${{ env.CABAL_CACHE_VERSION }}/${{ runner.os }}/${{ matrix.cabal }}/${{ matrix.ghc }}
5463 skip : " ${{ secrets.BINARY_CACHE_URI == '' }}"
5564
5665 - name : Cabal cache over HTTPS
5968 dist-dir : dist-newstyle
6069 store-path : ${{ steps.setup-haskell.outputs.cabal-store }}
6170 threads : 16
62- archive-uri : https://cache.haskellworks.io/archive
71+ archive-uri : https://cache.haskellworks.io/${{ env.CABAL_CACHE_VERSION }}/${{ runner.os }}/${{ matrix.cabal }}/${{ matrix.ghc }}
6372 skip : " ${{ secrets.BINARY_CACHE_URI != '' }}"
6473
6574 - name : Build
0 commit comments