Skip to content

Commit e3c8659

Browse files
committed
Build binaries WIP
1 parent 45f6193 commit e3c8659

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

0 commit comments

Comments
 (0)