Skip to content

Commit 640362d

Browse files
committed
Add GHC nightly CI job
1 parent a4606e8 commit 640362d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ghc-nightly.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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: cabal build --project-file=cabal.ci.project --write-ghc-environment-files=always
27+
- name: Test
28+
run: cabal test --project-file=cabal.ci.project all

0 commit comments

Comments
 (0)