Skip to content

Commit ad6f833

Browse files
committed
Added github-actions workflow
1 parent e4fd24f commit ad6f833

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.github/workflows/cabal.project.ci

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
documentation: True
2+
tests: True
3+
benchmarks: True
4+
5+
package io-classes
6+
ghc-options: -Werror
7+
flags: +asserts
8+
9+
package strict-stm
10+
ghc-options: -Werror
11+
flags: +asserts
12+
13+
package io-sim
14+
ghc-options: -Werror
15+
flags: +asserts

.github/workflows/haskell.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Haskell CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
ghc: ["8.10.7", "9.2.2"]
13+
os: [ubuntu-20.04, macos-latest, windows-latest]
14+
15+
steps:
16+
- name: "Setup haskell"
17+
uses: haskell/actions/setup@v1
18+
id: setup-haskell
19+
with:
20+
ghc-version: ${{ matrix.ghc }}
21+
cabal-version: 3.6.2.0
22+
23+
- uses: actions/checkout@v2
24+
25+
- name: "Configure cabal.project.local"
26+
run: |
27+
cat ./.github/workflows/cabal.project.local > ./cabal.project.local
28+
cat ./cabal.project.local
29+
30+
- name: Build dependencies
31+
run: cabal build --only-dependencies all
32+
33+
- name: Build projects [build]
34+
run: cabal build all
35+
36+
- name: io-classes [test]
37+
run: cabal run io-classes:test
38+
39+
- name: io-sim [test]
40+
run: cabal run io-sim:test
41+

0 commit comments

Comments
 (0)