Skip to content

Commit 8d70d09

Browse files
committed
Haskell CI: update GHC versions to include 8.10.4 and 9.0.1
1 parent a475bd7 commit 8d70d09

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,45 @@
88
#
99
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.11.20210220
11+
# version: 0.13.20210526
1212
#
13-
# REGENDATA ("0.11.20210220",["github","regex-tdfa.cabal"])
13+
# REGENDATA ("0.13.20210526",["github","regex-tdfa.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
1717
- push
1818
- pull_request
1919
jobs:
2020
linux:
21-
name: Haskell-CI - Linux - GHC ${{ matrix.ghc }}
21+
name: Haskell-CI - Linux - ${{ matrix.compiler }}
2222
runs-on: ubuntu-18.04
2323
container:
2424
image: buildpack-deps:bionic
2525
continue-on-error: ${{ matrix.allow-failure }}
2626
strategy:
2727
matrix:
2828
include:
29-
- ghc: 9.0.1
29+
- compiler: ghc-9.0.1
3030
allow-failure: false
31-
- ghc: 8.10.4
31+
- compiler: ghc-8.10.4
3232
allow-failure: false
33-
- ghc: 8.8.4
33+
- compiler: ghc-8.8.4
3434
allow-failure: false
35-
- ghc: 8.6.5
35+
- compiler: ghc-8.6.5
3636
allow-failure: false
37-
- ghc: 8.4.4
37+
- compiler: ghc-8.4.4
3838
allow-failure: false
39-
- ghc: 8.2.2
39+
- compiler: ghc-8.2.2
4040
allow-failure: false
41-
- ghc: 8.0.2
41+
- compiler: ghc-8.0.2
4242
allow-failure: false
43-
- ghc: 7.10.3
43+
- compiler: ghc-7.10.3
4444
allow-failure: false
45-
- ghc: 7.8.4
45+
- compiler: ghc-7.8.4
4646
allow-failure: false
47-
- ghc: 7.6.3
47+
- compiler: ghc-7.6.3
4848
allow-failure: false
49-
- ghc: 7.4.2
49+
- compiler: ghc-7.4.2
5050
allow-failure: false
5151
fail-fast: false
5252
steps:
@@ -56,29 +56,31 @@ jobs:
5656
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common
5757
apt-add-repository -y 'ppa:hvr/ghc'
5858
apt-get update
59-
apt-get install -y ghc-$GHC_VERSION cabal-install-3.4
59+
apt-get install -y $CC cabal-install-3.4
6060
env:
61-
GHC_VERSION: ${{ matrix.ghc }}
61+
CC: ${{ matrix.compiler }}
6262
- name: Set PATH and environment variables
6363
run: |
6464
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
6565
echo "LANG=C.UTF-8" >> $GITHUB_ENV
6666
echo "CABAL_DIR=$HOME/.cabal" >> $GITHUB_ENV
6767
echo "CABAL_CONFIG=$HOME/.cabal/config" >> $GITHUB_ENV
68-
HC=/opt/ghc/$GHC_VERSION/bin/ghc
68+
HCDIR=$(echo "/opt/$CC" | sed 's/-/\//')
69+
HCNAME=ghc
70+
HC=$HCDIR/bin/$HCNAME
6971
echo "HC=$HC" >> $GITHUB_ENV
70-
echo "HCPKG=/opt/ghc/$GHC_VERSION/bin/ghc-pkg" >> $GITHUB_ENV
71-
echo "HADDOCK=/opt/ghc/$GHC_VERSION/bin/haddock" >> $GITHUB_ENV
72+
echo "HCPKG=$HCDIR/bin/$HCNAME-pkg" >> $GITHUB_ENV
73+
echo "HADDOCK=$HCDIR/bin/haddock" >> $GITHUB_ENV
7274
echo "CABAL=/opt/cabal/3.4/bin/cabal -vnormal+nowrap" >> $GITHUB_ENV
7375
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
7476
echo "HCNUMVER=$HCNUMVER" >> $GITHUB_ENV
7577
echo "ARG_TESTS=--enable-tests" >> $GITHUB_ENV
7678
echo "ARG_BENCH=--enable-benchmarks" >> $GITHUB_ENV
7779
echo "HEADHACKAGE=false" >> $GITHUB_ENV
78-
echo "ARG_COMPILER=--ghc --with-compiler=$HC" >> $GITHUB_ENV
80+
echo "ARG_COMPILER=--$HCNAME --with-compiler=$HC" >> $GITHUB_ENV
7981
echo "GHCJSARITH=0" >> $GITHUB_ENV
8082
env:
81-
GHC_VERSION: ${{ matrix.ghc }}
83+
CC: ${{ matrix.compiler }}
8284
- name: env
8385
run: |
8486
env
@@ -157,9 +159,9 @@ jobs:
157159
- name: cache
158160
uses: actions/cache@v2
159161
with:
160-
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
162+
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
161163
path: ~/.cabal/store
162-
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
164+
restore-keys: ${{ runner.os }}-${{ matrix.compiler }}-
163165
- name: install dependencies
164166
run: |
165167
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --dependencies-only -j2 all

0 commit comments

Comments
 (0)