-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (42 loc) · 994 Bytes
/
stack.yml
File metadata and controls
50 lines (42 loc) · 994 Bytes
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
48
49
50
name: stack
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
schedule:
- cron: "00 15 * * *"
jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
ghc: ["8.6.5"]
cabal: ["3.0"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-haskell@v1
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: Display stack version & PATH env
run: |
stack --version
echo ${PATH}
- name: Cache ~/.stack
uses: actions/cache@v1.1.2
with:
path: ~/.stack
key: v1-stack
- name: Install libralies
run: |
sudo apt-get update
sudo apt-get install -y libsdl2-dev libsdl2-gfx-dev libsdl2-ttf-dev
- name: Install dependencies
run: stack test --only-dependencies --system-ghc
- name: Build
run: |
stack build --fast --system-ghc
stack install --fast --system-ghc