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

Commit

Permalink
Use ghc-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthi-chaud committed Jul 19, 2023
1 parent 3b0d189 commit 86c31c3
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,34 @@ on:

jobs:
Build:
name: Build (GHC ${{ matrix.ghc-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
]
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/install-stack
- uses: ./.github/actions/cache
- name: Compile Project
run: stack 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
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'
check-name: 'Build (GHC 9.2.6)'
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'
check-name: 'Build (GHC 9.2.6)'
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'
check-name: 'Build (GHC 9.2.6)'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
- uses: actions/[email protected]
Expand Down
3 changes: 3 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ packages:
# commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a
#
# extra-deps: []
extra-deps:
- ghc-lib-9.6.2.20230523
- ghc-lib-parser-9.6.2.20230523


# Override default flag values for local packages and extra-deps
Expand Down

0 comments on commit 86c31c3

Please sign in to comment.