Commit d0e7e68a authored by Ryan Scott's avatar Ryan Scott
Browse files

Regenerate CI-related YAML files

This commit was performed automatically by a script.
https://github.com/RyanGlScott/ci-maintenance
parent 7dd8d12d
......@@ -8,9 +8,9 @@
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
# version: 0.11.20201230
# version: 0.12
#
# REGENDATA ("0.11.20201230",["github","--config=cabal.haskell-ci","cabal.project"])
# REGENDATA ("0.12",["github","--config=cabal.haskell-ci","cabal.project"])
#
name: Haskell-CI
on:
......@@ -43,7 +43,7 @@ jobs:
nickname: github-actions
server: irc.freenode.org
linux:
name: Haskell-CI Linux - GHC ${{ matrix.ghc }}
name: Haskell-CI - Linux - ${{ matrix.compiler }}
runs-on: ubuntu-18.04
container:
image: buildpack-deps:bionic
......@@ -51,29 +51,31 @@ jobs:
strategy:
matrix:
include:
- ghc: 8.10.1
- compiler: ghc-9.0.1
allow-failure: false
- ghc: 8.8.3
- compiler: ghc-8.10.4
allow-failure: false
- ghc: 8.6.5
- compiler: ghc-8.8.4
allow-failure: false
- ghc: 8.4.4
- compiler: ghc-8.6.5
allow-failure: false
- ghc: 8.2.2
- compiler: ghc-8.4.4
allow-failure: false
- ghc: 8.0.2
- compiler: ghc-8.2.2
allow-failure: false
- ghc: 7.10.3
- compiler: ghc-8.0.2
allow-failure: false
- ghc: 7.8.4
- compiler: ghc-7.10.3
allow-failure: false
- ghc: 7.6.3
- compiler: ghc-7.8.4
allow-failure: false
- ghc: 7.4.2
- compiler: ghc-7.6.3
allow-failure: false
- ghc: 7.2.2
- compiler: ghc-7.4.2
allow-failure: false
- compiler: ghc-7.2.2
allow-failure: true
- ghc: 7.0.4
- compiler: ghc-7.0.4
allow-failure: true
fail-fast: false
steps:
......@@ -83,28 +85,31 @@ 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 $CC cabal-install-3.4
env:
GHC_VERSION: ${{ matrix.ghc }}
CC: ${{ matrix.compiler }}
- name: Set PATH and environment variables
run: |
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
echo "LANG=C.UTF-8" >> $GITHUB_ENV
echo "CABAL_DIR=$HOME/.cabal" >> $GITHUB_ENV
echo "CABAL_CONFIG=$HOME/.cabal/config" >> $GITHUB_ENV
HC=/opt/ghc/$GHC_VERSION/bin/ghc
HCDIR=$(echo "/opt/$CC" | sed 's/-/\//')
HCNAME=ghc
HC=$HCDIR/bin/$HCNAME
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 "HCPKG=$HCDIR/bin/$HCNAME-pkg" >> $GITHUB_ENV
echo "HADDOCK=$HCDIR/bin/haddock" >> $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=--$HCNAME --with-compiler=$HC" >> $GITHUB_ENV
echo "GHCJSARITH=0" >> $GITHUB_ENV
env:
GHC_VERSION: ${{ matrix.ghc }}
CC: ${{ matrix.compiler }}
- name: env
run: |
env
......@@ -149,10 +154,14 @@ 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
cat cabal.project
- name: sdist
run: |
mkdir -p sdist
cd source || false
$CABAL sdist all --output-dir $GITHUB_WORKSPACE/sdist
- name: unpack
run: |
......@@ -179,9 +188,9 @@ jobs:
- name: cache
uses: actions/cache@v2
with:
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
path: ~/.cabal/store
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
restore-keys: ${{ runner.os }}-${{ matrix.compiler }}-
- name: install dependencies
run: |
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --dependencies-only -j2 all
......
......@@ -22,8 +22,8 @@ tested-with: GHC == 7.0.4
, 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
synopsis: Extensible optionally-pure exceptions
description: Extensible optionally-pure exceptions.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment