Skip to content

Commit

Permalink
Test against GHC nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonchinn178 committed Jul 3, 2023
1 parent 25ae00b commit a391591
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ghc-compat-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
-
id: setup
name: Set up GHC ${{ inputs.ghc_version }}
uses: haskell-actions/setup@v2
uses: brandonchinn178/haskell-actions-setup@ghcup-nightly
with:
ghc-version: ${{ inputs.ghc_version }}
-
Expand All @@ -35,6 +35,12 @@ jobs:
cabal configure --enable-append
--prefer-oldest
--constraint 'aeson-qq >= 0.7.4'
-
if: ${{ inputs.ghc_version == 'latest-nightly' }}
name: Add head.hackage
run: |
curl -fsSL -o /tmp/head.hackage.sh https://gitlab.haskell.org/ghc/head.hackage/-/blob/master/scripts/head.hackage.sh
bash /tmp/head.hackage.sh dump-repo >> cabal.project.local
-
name: Get build plan
run: cabal build --dry-run
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/ghc-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Test against GHC nightly release
on:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # nightly

jobs:
test_ghc_head:
uses: ./.github/workflows/ghc-compat-test.yml
with:
ghc_version: latest-nightly

0 comments on commit a391591

Please sign in to comment.