Skip to content

Commit 3ee92f5

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 3ee92f5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/validate.yml

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

0 commit comments

Comments
 (0)