Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 664122f

Browse files
committed
Move CI to ghc-9.0
1 parent e88a637 commit 664122f

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: CI
44
on:
55
pull_request:
66
push:
7-
branches: ["ghc-8.10"]
7+
branches: ["ghc-9.0"]
88

99
jobs:
1010
cabal:
@@ -13,37 +13,41 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest]
16-
cabal: ["3.2"]
16+
cabal: ["3.4"]
1717
ghc:
18-
- "8.10.1"
19-
- "8.10.2"
18+
- "9.0.1"
2019

2120
steps:
2221
- uses: actions/checkout@v2
23-
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/ghc-8.10'
22+
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/ghc-9.0'
2423

25-
- uses: actions/setup-haskell@v1.1.4
24+
- uses: haskell/actions/setup@v1
2625
id: setup-haskell-cabal
2726
name: Setup Haskell
2827
with:
2928
ghc-version: ${{ matrix.ghc }}
3029
cabal-version: ${{ matrix.cabal }}
3130

31+
- name: Prepare environment
32+
run: echo "$HOME/.ghcup/bin" >> $GITHUB_PATH
33+
34+
3235
- name: Freeze
3336
run: |
3437
cabal freeze
35-
36-
- uses: actions/cache@v1
37-
name: Cache ~/.cabal/store
38+
39+
- uses: actions/cache@v2
40+
name: Cache ~/.cabal/store and .ghcup
3841
with:
39-
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
40-
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
42+
path: |
43+
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
44+
.ghcup
45+
key: ${{ runner.os }}
4146

4247
- name: Build
4348
run: |
4449
cabal configure --enable-tests --enable-benchmarks --test-show-details=direct
4550
cabal build all
4651
4752
- name: Test
48-
run: |
49-
cabal test all
53+
run: cabal test all

haddock-api/haddock-api.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ test-suite spec
189189
, containers
190190
, deepseq
191191
, directory
192+
, exceptions
192193
, filepath
193194
, ghc-boot
194195
, transformers

0 commit comments

Comments
 (0)