Skip to content

Commit fa0b40c

Browse files
authored
Add GHC nightly CI job (#88)
1 parent 728a9c6 commit fa0b40c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ghc-nightly.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: GHC Nightly
2+
3+
# Trigger the workflow on push or pull request, but only for the main branch
4+
on:
5+
pull_request:
6+
push:
7+
branches: ["main"]
8+
9+
jobs:
10+
tests:
11+
name: Tests on GHC Nightly
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: haskell/ghcup-setup@v1
16+
- name: Setup GHC Nightly
17+
run: |
18+
ghcup config add-release-channel https://ghc.gitlab.haskell.org/ghcup-metadata/ghcup-nightlies-2025-0.0.7.yaml
19+
ghcup install ghc latest-nightly
20+
- name: Setup mdBook
21+
uses: peaceiris/actions-mdbook@v2
22+
with:
23+
mdbook-version: '0.4.40'
24+
- run: make docs
25+
- name: Build
26+
continue-on-error: true
27+
run: |
28+
cabal update
29+
cabal build --allow-newer --project-file=cabal.ci.project
30+
- name: Test
31+
run: cabal test --project-file=cabal.ci.project all

0 commit comments

Comments
 (0)