@@ -18,18 +18,22 @@ jobs:
1818 matrix :
1919 include :
2020 # Linux
21- - { cabal: "3.12", os: ubuntu-latest, ghc: "8.4.4" }
22- - { cabal: "3.12", os: ubuntu-latest, ghc: "8.6.5" }
23- - { cabal: "3.12", os: ubuntu-latest, ghc: "8.8.4" }
24- - { cabal: "3.12", os: ubuntu-latest, ghc: "8.10.7" }
25- - { cabal: "3.12", os: ubuntu-latest, ghc: "9.0.2" }
26- - { cabal: "3.12", os: ubuntu-latest, ghc: "9.2.8" }
27- - { cabal: "3.12", os: ubuntu-latest, ghc: "9.4.8" }
28- - { cabal: "3.12", os: ubuntu-latest, ghc: "9.6.6" }
29- - { cabal: "3.12", os: ubuntu-latest, ghc: "9.8.4" }
30- - { cabal: "3.12", os: ubuntu-latest, ghc: "9.10.1" }
31- # Fails to resolve aeson [2025.01.14]
32- # - { cabal: "3.12", os: ubuntu-latest, ghc: "9.12.1" }
21+ - { cabal: "3.14", os: ubuntu-latest, ghc: "8.4.4" }
22+ - { cabal: "3.14", os: ubuntu-latest, ghc: "8.6.5" }
23+ - { cabal: "3.14", os: ubuntu-latest, ghc: "8.8.4" }
24+ - { cabal: "3.14", os: ubuntu-latest, ghc: "8.10.7" }
25+ - { cabal: "3.14", os: ubuntu-latest, ghc: "9.0.2" }
26+ - { cabal: "3.14", os: ubuntu-latest, ghc: "9.2.8" }
27+ - { cabal: "3.14", os: ubuntu-latest, ghc: "9.4.8" }
28+ - { cabal: "3.14", os: ubuntu-latest, ghc: "9.6.7" }
29+ - { cabal: "3.14", os: ubuntu-latest, ghc: "9.8.4" }
30+ - { cabal: "3.14", os: ubuntu-latest, ghc: "9.10.2" }
31+ - { cabal: "3.14", os: ubuntu-latest, ghc: "9.12.2" }
32+ # Macos
33+ - { cabal: "3.14", os: macos-latest, ghc: "9.6.7" }
34+ - { cabal: "3.14", os: macos-latest, ghc: "9.8.4" }
35+ - { cabal: "3.14", os: macos-latest, ghc: "9.10.2" }
36+ - { cabal: "3.14", os: macos-latest, ghc: "9.12.2" }
3337 fail-fast : false
3438
3539 steps :
5256 - name : " Install PAPI"
5357 run : |
5458 sudo apt-get install -y libpapi-dev
59+ echo FLAG_PAPI=-fBenchPAPI >> "$GITHUB_ENV"
60+ if : matrix.os == 'ubuntu-latest'
5561 # ----------------
5662 - name : Versions
5763 run : |
@@ -74,11 +80,16 @@ jobs:
7480 # ----------------
7581 - name : Build
7682 run : |
83+ echo FLAG_PAPI=$FLAG_PAPI
7784 cd unpacked/statistics-*
78- cabal configure --haddock-all --enable-tests --enable-benchmarks
85+ cabal configure $FLAG_PAPI --haddock-all --enable-tests --enable-benchmarks --benchmark-option=-l
7986 cabal build all --write-ghc-environment-files=always
8087 # ----------------
8188 - name : Test
8289 run : |
8390 cd unpacked/statistics-*
8491 cabal test all
92+ # ----------------
93+ - name : Bench
94+ run : |
95+ cabal bench all
0 commit comments