Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

Commit

Permalink
Actions: Setup GHC's version
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthi-chaud committed Jul 20, 2023
1 parent 405b6b6 commit 281d48d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 21 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,26 @@ on:

jobs:
Build:
name: Build (GHC ${{ matrix.ghc-version }})
name: Build (LTS ${{ matrix.lts-version }})
strategy:
fail-fast: false
matrix:
ghc-version: [
9.6.2,
9.6.1,
9.4.5,
9.4.4,
9.4.3,
9.4.2,
9.4.1,
9.2.7,
9.2.6,
9.2.5,
9.2.4,
9.2.3,
9.2.2,
9.2.1
lts-version: [
20.26,
20.24,
20.23,
20.21,
20.12,
20.11
]
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
run: stack --resolver lts-${{ matrix.lts-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 run test/assets/invalid/expect-char.hs
run: stack --resolver lts-${{ matrix.lts-version }} run test/assets/invalid/expect-char.hs
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'Build (GHC 9.2.6)'
check-name: 'Build (LTS 20.21)'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
- uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'Build (GHC 9.2.6)'
check-name: 'Build (LTS 20.21)'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
- uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'Build (GHC 9.2.6)'
check-name: 'Build (LTS 20.21)'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
- uses: actions/[email protected]
Expand Down

0 comments on commit 281d48d

Please sign in to comment.