Skip to content

Workflow file for this run

name: Haskell-ci-new

Check failure on line 1 in .github/workflows/haskell-ci-new.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/haskell-ci-new.yml

Invalid workflow file

Invalid type for `job.strategy`
on:
- push
- pull_request
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
linux:
name: Haskell-CI - Linux - ${{ matrix.compiler }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-18.04]
compiler: [ 7.0.4, 7.2.2, 7.4.1, 7.4.2, 7.6.3, 7.8.4, 7.10.3 ]
matrix:
os: [ ubuntu-20.04 ]
compiler: [ 7.0.4, 7.2.2, 7.4.1, 7.4.2, 7.6.3, 7.8.4,
7.10.3, 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 ]
steps:
- 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