Skip to content

Commit

Permalink
Add GHC-9.0 job to CI (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej authored Feb 28, 2021
1 parent e455b87 commit 2fdd87b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,29 @@
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
# version: 0.11.20201230
# version: 0.11.20210222
#
# REGENDATA ("0.11.20201230",["github","--config=cabal.haskell-ci","cabal.project"])
# REGENDATA ("0.11.20210222",["github","--config=cabal.haskell-ci","cabal.project"])
#
name: Haskell-CI
on:
- push
- pull_request
jobs:
linux:
name: Haskell-CI Linux - GHC ${{ matrix.ghc }}
name: Haskell-CI - Linux - GHC ${{ matrix.ghc }}
runs-on: ubuntu-18.04
container:
image: buildpack-deps:bionic
continue-on-error: ${{ matrix.allow-failure }}
strategy:
matrix:
include:
- ghc: 8.10.1
- ghc: 9.0.1
allow-failure: false
- ghc: 8.8.3
- ghc: 8.10.4
allow-failure: false
- ghc: 8.8.4
allow-failure: false
- ghc: 8.6.5
allow-failure: false
Expand All @@ -54,7 +56,7 @@ jobs:
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common
apt-add-repository -y 'ppa:hvr/ghc'
apt-get update
apt-get install -y ghc-$GHC_VERSION cabal-install-3.2
apt-get install -y ghc-$GHC_VERSION cabal-install-3.4
env:
GHC_VERSION: ${{ matrix.ghc }}
- name: Set PATH and environment variables
Expand All @@ -67,12 +69,13 @@ jobs:
echo "HC=$HC" >> $GITHUB_ENV
echo "HCPKG=/opt/ghc/$GHC_VERSION/bin/ghc-pkg" >> $GITHUB_ENV
echo "HADDOCK=/opt/ghc/$GHC_VERSION/bin/haddock" >> $GITHUB_ENV
echo "CABAL=/opt/cabal/3.2/bin/cabal -vnormal+nowrap" >> $GITHUB_ENV
echo "CABAL=/opt/cabal/3.4/bin/cabal -vnormal+nowrap" >> $GITHUB_ENV
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
echo "HCNUMVER=$HCNUMVER" >> $GITHUB_ENV
echo "ARG_TESTS=--enable-tests" >> $GITHUB_ENV
echo "ARG_BENCH=--enable-benchmarks" >> $GITHUB_ENV
echo "ARG_COMPILER=--ghc --with-compiler=/opt/ghc/$GHC_VERSION/bin/ghc" >> $GITHUB_ENV
echo "HEADHACKAGE=false" >> $GITHUB_ENV
echo "ARG_COMPILER=--ghc --with-compiler=$HC" >> $GITHUB_ENV
echo "GHCJSARITH=0" >> $GITHUB_ENV
env:
GHC_VERSION: ${{ matrix.ghc }}
Expand Down Expand Up @@ -120,10 +123,16 @@ jobs:
uses: actions/checkout@v2
with:
path: source
- name: initial cabal.project for sdist
run: |
touch cabal.project
echo "packages: $GITHUB_WORKSPACE/source/." >> cabal.project
echo "packages: $GITHUB_WORKSPACE/source/./criterion-measurement" >> cabal.project
echo "packages: $GITHUB_WORKSPACE/source/./examples" >> cabal.project
cat cabal.project
- name: sdist
run: |
mkdir -p sdist
cd source || false
$CABAL sdist all --output-dir $GITHUB_WORKSPACE/sdist
- name: unpack
run: |
Expand Down
5 changes: 3 additions & 2 deletions criterion-measurement/criterion-measurement.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ tested-with:
GHC==8.2.2,
GHC==8.4.4,
GHC==8.6.5,
GHC==8.8.3,
GHC==8.10.1
GHC==8.8.4,
GHC==8.10.4,
GHC==9.0.1

flag fast
description: compile without optimizations
Expand Down
5 changes: 3 additions & 2 deletions criterion.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ tested-with:
GHC==8.2.2,
GHC==8.4.4,
GHC==8.6.5,
GHC==8.8.3,
GHC==8.10.1
GHC==8.8.4,
GHC==8.10.4,
GHC==9.0.1

data-files:
templates/*.css
Expand Down
5 changes: 3 additions & 2 deletions examples/criterion-examples.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ tested-with:
GHC==8.2.2,
GHC==8.4.4,
GHC==8.6.5,
GHC==8.8.3,
GHC==8.10.1
GHC==8.8.4,
GHC==8.10.4,
GHC==9.0.1

flag conduit-vs-pipes
default: True
Expand Down

0 comments on commit 2fdd87b

Please sign in to comment.