This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
ci: Removed GHC 7.10.3 support for ubuntu-latest in CI matrix #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The present workflow was made based on the following references: | |
# - https://github.com/actions/cache/blob/main/examples.md#haskell---cabal | |
# - https://github.com/haskell/time/blob/master/.github/workflows/ci.yml | |
# - https://github.com/stackbuilders/stache/blob/master/.github/workflows/ci.yaml | |
# - https://markkarpov.com/post/github-actions-for-haskell-ci.html | |
--- | |
name: Build | |
on: push | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
haskell: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
ghc-macos: | |
- "9.0" | |
- "8.10" | |
- "7.10.3" | |
ghc-ubuntu: | |
- "9.0" | |
- "8.10" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Haskell tooling | |
uses: haskell/actions/setup@v2 | |
with: | |
ghc-version: ${{ matrix.os == 'macos-latest' && matrix.ghc-macos || matrix.ghc-ubuntu }} | |
cabal-version: "3.6" | |
- name: Configure project | |
run: cabal configure --enable-tests | |
- name: Build project | |
run: cabal build | |
- name: Run tests | |
run: cabal test --test-show-details=direct | |
- name: Check documentation | |
run: cabal haddock |