Skip to content

Commit aea4eef

Browse files
committed
Bump CI to GHC 9.6.4; add 9.8.1 to stack CI
1 parent 3985f90 commit aea4eef

7 files changed

Lines changed: 32 additions & 23 deletions

File tree

.github/workflows/haskell-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/andreasabel/haskell-ci
1010
#
11-
# version: 0.17.20231112
11+
# version: 0.17.20240110
1212
#
13-
# REGENDATA ("0.17.20231112",["github","hackage-cli.cabal"])
13+
# REGENDATA ("0.17.20240110",["github","hackage-cli.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -37,9 +37,9 @@ jobs:
3737
compilerVersion: 9.8.1
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.6.3
40+
- compiler: ghc-9.6.4
4141
compilerKind: ghc
42-
compilerVersion: 9.6.3
42+
compilerVersion: 9.6.4
4343
setup-method: ghcup
4444
allow-failure: false
4545
- compiler: ghc-9.4.8

.github/workflows/stack.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-latest]
17-
ghc-ver: [9.6.3, 9.4.8, 9.2.8, 9.0.2, 8.10.7]
17+
ghc-ver: [9.8.1, 9.6.4, 9.4.8, 9.2.8, 9.0.2, 8.10.7]
1818
# On ubuntu-22.04 the old versions 8.8.4, 8.6.5, 8.4.4, 8.2.2 fail due to HsOpenSSL linking errors.
1919
# They used to work under ubuntu-20.04, but it is not worth the trouble maintaining them.
2020
# Apparently, HsOpenSSL-0.11.6 and older are too old for ubuntu-22.04.
2121
include:
2222
- os: macos-latest
23-
ghc-ver: 9.6.3
23+
ghc-ver: 9.6.4
2424
- os: windows-latest
25-
ghc-ver: 9.6.3
25+
ghc-ver: 9.6.4
2626
env:
2727
ARGS: "--stack-yaml=stack-${{ matrix.ghc-ver }}.yaml --no-terminal --system-ghc"
2828

@@ -46,7 +46,7 @@ jobs:
4646
# To work around certification problems, we need to update msys2-keyring.
4747
run: |
4848
stack exec ${{ env.ARGS }} -- pacman --noconfirm -Sy msys2-keyring
49-
stack exec ${{ env.ARGS }} -- pacman --noconfirm -S mingw-w64-x86_64-pkg-config
49+
stack exec ${{ env.ARGS }} -- pacman --noconfirm -S mingw-w64-x86_64-pkgconf
5050
stack exec ${{ env.ARGS }} -- pacman --noconfirm -S mingw-w64-x86_64-brotli
5151
stack exec ${{ env.ARGS }} -- pacman --noconfirm -S mingw-w64-x86_64-openssl
5252
@@ -62,30 +62,32 @@ jobs:
6262
echo "STACK_VER=${STACK_VER}" >> "${GITHUB_ENV}"
6363
6464
- name: Cache dependencies (restore)
65-
uses: actions/cache/restore@v3
65+
uses: actions/cache/restore@v4
6666
id: cache
6767
with:
6868
path: ${{ steps.haskell-setup.outputs.stack-root }}
69-
key: ${{ runner.os }}-stack-${{ env.STACK_VER }}-ghc-${{ matrix.ghc-ver }}-${{ hashFiles(format('stack-{0}.yaml', matrix.ghc-ver)) }}
69+
# Use a unique primary key (always save new cache); works if caches aren't to big or too many...
70+
key: ${{ runner.os }}-stack-${{ env.STACK_VER }}-ghc-${{ matrix.ghc-ver }}-commit-${{ github.sha }}
7071
restore-keys: ${{ runner.os }}-stack-${{ env.STACK_VER }}-ghc-${{ matrix.ghc-ver }}-
7172

7273
- name: Install dependencies
73-
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
74+
# if: ${{ steps.cache.outputs.cache-hit != 'true' }}
7475
run: |
7576
stack build ${{ env.ARGS }} --test --only-dependencies
7677
77-
- name: Cache dependencies (save)
78-
uses: actions/cache/save@v3
79-
# Will fail if we already have a cache with this key (in this case, cache-hit is true).
80-
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
81-
with:
82-
path: ${{ steps.haskell-setup.outputs.stack-root }}
83-
key: ${{ steps.cache.outputs.cache-primary-key }}
84-
8578
- name: Build hackage-cli
8679
run: |
8780
stack build ${{ env.ARGS }}
8881
8982
- name: Test hackage-cli
9083
run: |
9184
stack test ${{ env.ARGS }}
85+
86+
- name: Cache dependencies (save)
87+
uses: actions/cache/save@v4
88+
if: always()
89+
# # Will fail if we already have a cache with this key (in this case, cache-hit is true).
90+
# if: ${{ steps.cache.outputs.cache-hit != 'true' }}
91+
with:
92+
path: ${{ steps.haskell-setup.outputs.stack-root }}
93+
key: ${{ steps.cache.outputs.cache-primary-key }}

hackage-cli.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ build-type: Simple
1919
tested-with:
2020
-- Keep in descending order.
2121
GHC == 9.8.1
22-
GHC == 9.6.3
22+
GHC == 9.6.4
2323
GHC == 9.4.8
2424
GHC == 9.2.8
2525
GHC == 9.0.2
@@ -37,7 +37,8 @@ extra-source-files:
3737
fixtures/*.diff
3838
fixtures/*.cabal
3939
-- Supported GHC versions when building with stack:
40-
stack-9.6.3.yaml
40+
stack-9.8.1.yaml
41+
stack-9.6.4.yaml
4142
stack-9.4.8.yaml
4243
stack-9.2.8.yaml
4344
stack-9.0.2.yaml

stack-9.4.8.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: lts-21.24
1+
resolver: lts-21.25
22
compiler: ghc-9.4.8
33
compiler-check: match-exact

stack-9.6.3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
resolver: nightly-2023-12-14
1+
resolver: lts-22.6
22
compiler: ghc-9.6.3
33
compiler-check: match-exact

stack-9.6.4.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
resolver: lts-22.7
2+
compiler: ghc-9.6.4
3+
compiler-check: match-exact

stack-9.8.1.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
resolver: nightly-2024-01-23
2+
compiler: ghc-9.8.1
3+
compiler-check: match-exact

0 commit comments

Comments
 (0)