File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+ permissions : read-all
3+
4+ on :
5+ push :
6+ paths :
7+ - ' package.yaml'
8+ - ' stack.yaml'
9+ - ' app/**'
10+ - ' site/**'
11+ - ' src/**'
12+ - ' test/**'
13+
14+ jobs :
15+ build :
16+ concurrency : build
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - uses : actions/checkout@v3
21+
22+ - uses : haskell/actions/setup@v2
23+ with :
24+ enable-stack : true
25+
26+ - name : Cache dependencies
27+ uses : actions/cache@v3
28+ with :
29+ path : ~/.stack
30+ key : stack-${{ hashFiles('package.yaml', 'stack.yaml') }}
31+ restore-keys : stack-
32+
33+ - name : Cache build artifacts
34+ uses : actions/cache@v3
35+ with :
36+ path : .stack-work
37+ key : build-${{ hashFiles('app/**', 'src/**', 'test/**') }}
38+ restore-keys : build-
39+
40+ - name : Build and test
41+ run : stack build --test
File renamed without changes.
You can’t perform that action at this time.
0 commit comments