File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [push]
4+ jobs :
5+ build :
6+ runs-on : ubuntu-latest
7+ steps :
8+ - uses : actions/checkout@v2
9+ - uses : haskell/actions/setup@v1
10+ with :
11+ ghc-version : ' 8.6.3'
12+ enable-stack : true
13+ stack-version : ' latest'
14+ - name : Cache
15+ uses : actions/cache@v1
16+ env :
17+ cache-name : cache-stack
18+ with :
19+ path : ~/.stack
20+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/stack.yaml') }}
21+ restore-keys : |
22+ ${{ runner.os }}-build-${{ env.cache-name }}-
23+ ${{ runner.os }}-build-
24+ ${{ runner.os }}-
25+ - name : Build dependencies
26+ run : |
27+ stack --no-terminal build --test --only-dependencies
28+ - name : Build
29+ run : |
30+ mkdir dist
31+ stack --no-terminal build --test --no-run-tests
32+ - name : Test
33+ run : stack --no-terminal build --test
You can’t perform that action at this time.
0 commit comments