File tree 2 files changed +58
-0
lines changed
2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Stack
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ jobs :
8
+ build :
9
+ name : Stack CI - Linux - ${{ matrix.resolver }}
10
+ runs-on : ubuntu-latest
11
+ strategy :
12
+ fail-fast : false
13
+ matrix :
14
+ include :
15
+ - resolver : lts-12
16
+ - resolver : lts-14
17
+ - resolver : lts-16
18
+ - resolver : lts-17
19
+
20
+ steps :
21
+ - name : Clone project
22
+ uses : actions/checkout@v2
23
+
24
+ - name : Install C dependencies
25
+ run : |
26
+ set -ex
27
+ sudo apt install -y \
28
+ libx11-dev \
29
+ libxext-dev \
30
+ libxrandr-dev \
31
+ libxss-dev \
32
+ #
33
+
34
+ - name : Cache Haskell dependencies
35
+ uses : actions/cache@v2
36
+ with :
37
+ path : ~/.stack
38
+ key : ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('*.cabal') }}
39
+ restore-keys : |
40
+ ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}-
41
+ ${{ runner.os }}-${{ matrix.resolver }}-
42
+
43
+ - name : Build and test
44
+ run : |
45
+ set -ex
46
+ stack test --fast --no-terminal --resolver=${{ matrix.resolver }}
Original file line number Diff line number Diff line change
1
+ resolver : lts-16.31
2
+
3
+ packages :
4
+ - ./
5
+
6
+ nix :
7
+ packages :
8
+ - pkg-config
9
+ - xorg.libX11
10
+ - xorg.libXScrnSaver
11
+ - xorg.libXext
12
+ - xorg.libXrandr
You can’t perform that action at this time.
0 commit comments