diff --git a/.github/workflows/ghc-compat-test.yml b/.github/workflows/ghc-compat-test.yml index 9af495ea..cfd9518c 100644 --- a/.github/workflows/ghc-compat-test.yml +++ b/.github/workflows/ghc-compat-test.yml @@ -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 }} - @@ -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 diff --git a/.github/workflows/ghc-nightly.yml b/.github/workflows/ghc-nightly.yml new file mode 100644 index 00000000..4ff8860c --- /dev/null +++ b/.github/workflows/ghc-nightly.yml @@ -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