-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.02 KB
/
haskell.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
push:
branches: [ "mistress" ]
jobs:
stack:
name: "${{ matrix.os }} / stack + ghc-${{ matrix.ghc }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
ghc:
- "9.4.7"
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --only-dependencies
- uses: actions/cache@v2
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ matrix.os }}-${{ matrix.ghc }}-stack
- name: Test
run: |
stack test --system-ghc
- name: Build
run: |
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: prop-solveur-${{ matrix.os }}-${{ github.sha }}
path: $(stack path --dist-dir)/build/prop-solveur/prop-solveur