Skip to content

Commit 0c1fb77

Browse files
authored
Use GHC nightly in CI (#190)
1 parent 4386fa0 commit 0c1fb77

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ghc-nightly.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
16+
- uses: haskell/ghcup-setup@v1
17+
18+
- name: Setup GHC Nightly
19+
run: |
20+
ghcup config add-release-channel https://ghc.gitlab.haskell.org/ghcup-metadata/ghcup-nightlies-2025-0.0.7.yaml
21+
ghcup install ghc latest-nightly
22+
ghcup install cabal -f -u https://github.com/haskell/cabal/releases/download/cabal-head/cabal-head-Linux-x86_64.tar.gz head
23+
ghcup set cabal head
24+
cabal update
25+
26+
- name: Install libsodium-dev on ubuntu
27+
run: |
28+
sudo apt install libsodium-dev
29+
30+
- name: Build libsodium-bindings with pkg-config
31+
run: |
32+
cabal build --allow-newer --project-file=cabal.pkg-config.project -v2 libsodium-bindings
33+
34+
- name: Build sel with pkg-config
35+
run: |
36+
cabal build --allow-newer --project-file=cabal.pkg-config.project -v2 sel
37+
cabal test --project-file=cabal.pkg-config.project sel

0 commit comments

Comments
 (0)