This repository has been archived by the owner on Dec 2, 2023. It is now read-only.
Actions: Rename Jobs #171
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
name: Build | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
Build: | |
name: Build (GHC ${{ matrix.ghc-version }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
ghc-version: [ | |
9.4.5, | |
9.4.4, | |
9.4.3, | |
9.4.2, | |
9.4.1, | |
9.2.8, | |
9.2.7 | |
] | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/[email protected] | |
- uses: ./.github/actions/install-stack | |
- uses: ./.github/actions/cache | |
- name: Compile Project | |
run: stack --compiler ghc-${{ matrix.ghc-version }} build | |
# This is to check if the project has been compiled with the correct version of ghc-lib. | |
# For example, if there is a mismatch, we would get something like "Unknown Constructor: Char" | |
- name: Check Basic Suggestion | |
run: stack --compiler ghc-${{ matrix.ghc-version }} run test/assets/invalid/expect-char.hs |