@@ -17,17 +17,24 @@ jobs:
17
17
strategy :
18
18
fail-fast : false
19
19
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"
22
29
23
30
steps :
24
31
- uses : actions/checkout@v2
25
32
26
- - uses : haskell/ actions/setup@v1
33
+ - uses : haskell- actions/setup@v2
27
34
id : setup-haskell
28
35
with :
29
36
ghc-version : ${{ matrix.ghc }}
30
- cabal-version : 3.6 .2.0
37
+ cabal-version : ' 3.10 .2.1 '
31
38
32
39
- name : Set some window specific things
33
40
if : matrix.os == 'windows-latest'
36
43
- name : Configure project
37
44
run : |
38
45
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
42
51
43
52
- name : Cabal cache over S3
44
53
uses : action-works/cabal-cache-s3@v1
50
59
dist-dir : dist-newstyle
51
60
store-path : ${{ steps.setup-haskell.outputs.cabal-store }}
52
61
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 }}
54
63
skip : " ${{ secrets.BINARY_CACHE_URI == '' }}"
55
64
56
65
- name : Cabal cache over HTTPS
59
68
dist-dir : dist-newstyle
60
69
store-path : ${{ steps.setup-haskell.outputs.cabal-store }}
61
70
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 }}
63
72
skip : " ${{ secrets.BINARY_CACHE_URI != '' }}"
64
73
65
74
- name : Build
0 commit comments