Skip to content

Commit ba61041

Browse files
committed
CI: add a build with GHC 9.0
The GHC 9.0 build doesn't do any test, as they are performed by the main branch. This commit also fixes a caching bug in the Github action. It's too small for a separate commit.
1 parent 426c684 commit ba61041

File tree

2 files changed

+55
-2
lines changed

2 files changed

+55
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
~/.cabal/packages
2424
~/.cabal/store
2525
dist-newstyle
26-
key: cache-${{ runner.os }}-${{ hashFiles('nixpkgs.nix') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('linear-base.cabal') }}-${{ github.sha }}
27-
restore-keys: cache-${{ runner.os }}-${{ hashFiles('nixpkgs.nix') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('linear-base.cabal') }}-
26+
key: cache-${{ runner.os }}-${{ hashFiles('nixpkgs.nix') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('capability.cabal') }}-${{ github.sha }}
27+
restore-keys: cache-${{ runner.os }}-${{ hashFiles('nixpkgs.nix') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('capability.cabal') }}-
2828
- name: Update Cabal's database
2929
run: $NIXSHELL --run "cabal update"
3030
- name: Build Cabal's dependencies
@@ -35,3 +35,18 @@ jobs:
3535
run: $NIXSHELL --run "cabal --flag=dev test"
3636
- name: Haddock
3737
run: $NIXSHELL --run "cabal haddock"
38+
39+
stack-ghc9:
40+
name: Build on GHC 9.0
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/[email protected]
44+
- name: Cache dependencies
45+
uses: actions/[email protected]
46+
with:
47+
path: ~/.stack
48+
key: stack-ghc9-${{ runner.os }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('stack-ghc9.yaml.lock', 'capability.cabal') }}
49+
- name: Upgrade stack
50+
run: stack upgrade
51+
- name: Build
52+
run: stack --stack-yaml=stack-ghc9.yaml build --pedantic --test --bench --no-run-tests --no-run-benchmarks

stack-ghc9.yaml.lock

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages:
7+
- completed:
8+
subdir: generic-lens-core
9+
name: generic-lens-core
10+
version: 2.1.0.0
11+
git: https://github.com/kcsongor/generic-lens.git
12+
pantry-tree:
13+
size: 2283
14+
sha256: 5a26b16c38ad8d8ebc81182e1d09858858f16dc117a0c7b084d8446d3a17d749
15+
commit: 8e1fc7dcf444332c474fca17110d4bc554db08c8
16+
original:
17+
subdir: generic-lens-core
18+
git: https://github.com/kcsongor/generic-lens.git
19+
commit: 8e1fc7dcf444332c474fca17110d4bc554db08c8
20+
- completed:
21+
subdir: generic-lens
22+
name: generic-lens
23+
version: 2.1.0.0
24+
git: https://github.com/kcsongor/generic-lens.git
25+
pantry-tree:
26+
size: 2630
27+
sha256: aba81557550537d4cfda2c1b07accff8589da44a1e418a3cde5639eb438d1c86
28+
commit: 8e1fc7dcf444332c474fca17110d4bc554db08c8
29+
original:
30+
subdir: generic-lens
31+
git: https://github.com/kcsongor/generic-lens.git
32+
commit: 8e1fc7dcf444332c474fca17110d4bc554db08c8
33+
snapshots:
34+
- completed:
35+
size: 540164
36+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2021/7/4.yaml
37+
sha256: 195e3e9394de03e724525e210f82e30c4488f7c8a09fc70850d75d8b79332993
38+
original: nightly-2021-07-04

0 commit comments

Comments
 (0)