Skip to content

Workflow file for this run

name: Haskell-ci-new
on:
- push
- pull_request
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
linux:
name: Haskell-CI - Linux - ${{ matrix.compiler }}
runs-on: ubuntu-20.04 #${{ matrix.os }}
container:
image: buildpack-deps:bionic
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04 ]
compiler: [ 8.0.2, 8.4.1, 8.4.2, 8.4.3, 8.4.4,
8.6.1, 8.6.2, 8.6.3, 8.6.4, 8.6.5, 8.8.1,
8.8.2, 8.8.3, 8.8.4, 8.10.1, 8.10.2, 8.10.4,
8.10.7, 9.0.1, 9.2.4, 9.6.1, 9.6.4 ]
include:
- os: ubuntu-18.04
compiler: 7.0.4
- os: ubuntu-18.04
compiler: 7.2.2
- os: ubuntu-18.04
compiler: 7.4.1
- os: ubuntu-18.04
compiler: 7.4.2
- os: ubuntu-18.04
compiler: 7.6.3
- os: ubuntu-18.04
compiler: 7.8.4
- os: ubuntu-18.04
compiler: 7.10.3
steps:
- name: apt
run: |
apt-get update
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
apt-add-repository -y 'ppa:hvr/ghc'
apt-get update
apt-get install -y ${{ matrix.compiler }} cabal-install-3.4
# - name: Get Haskell
# id: haskell
# uses: haskell-actions/setup@v2
# with:
# ghc-version: ${{ matrix.compiler }}
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v4
id: cache
with:
path: |
./dist-newstyle
${{ steps.haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-${{ matrix.compiler }}-
- name: Build
run: cabal build
- name: Test
run: cabal test