Skip to content

Commit 0d2da8a

Browse files
committed
Add GHC nightly CI job
1 parent a4606e8 commit 0d2da8a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ghc-nightly.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
run: |
27+
cabal update
28+
cabal build --allow-newer --project-file=cabal.ci.project
29+
- name: Test
30+
run: cabal test --project-file=cabal.ci.project all

0 commit comments

Comments
 (0)