Skip to content

Commit 7da18d0

Browse files
committed
ci: Try using haskell-actions/setup
This would allow us to use a single CI infrastructure for all platforms.
1 parent 4f13e52 commit 7da18d0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/validate.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on: [push]
2+
name: build
3+
jobs:
4+
build:
5+
runs-on: ${{ matrix.os }}
6+
strategy:
7+
matrix:
8+
ghc: ['9.2.3', '9.4.5', '9.6.6', '9.8.4', '9.10.1']
9+
cabal: ['3.14.1.1']
10+
os: [ubuntu-latest, macOS-latest, windows-latest]
11+
name: "${{ matrix.os }} - ${{ matrix.ghc }}"
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Setup Haskell
15+
uses: haskell-actions/setup@v2
16+
with:
17+
ghc-version: ${{ matrix.ghc }}
18+
cabal-version: ${{ matrix.cabal }}
19+
- run: cabal check
20+
- run: cabal update
21+
- run: cabal build
22+
- run: cabal test --test-show-details=direct --verbose

0 commit comments

Comments
 (0)