aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index aef142b..d877ffc 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -30,13 +30,19 @@ jobs:
30 runs-on: ${{ matrix.os }} 30 runs-on: ${{ matrix.os }}
31 steps: 31 steps:
32 - uses: actions/checkout@v2 32 - uses: actions/checkout@v2
33 - uses: actions/cache@v2
34 with:
35 path: ~/.stack
36 key: compiler-${{ runner.os }}-${{ hashFiles('compiler/stack.yaml') }}
33 - uses: haskell/actions/setup@v1 37 - uses: haskell/actions/setup@v1
34 with: 38 with:
35 ghc-version: 8.10.4 39 ghc-version: 8.10.4
36 enable-stack: true 40 enable-stack: true
37 - name: Build Haskell Stack project 41 - name: Build Haskell Stack project
38 working-directory: compiler 42 working-directory: compiler
43 shell: bash
39 run: | 44 run: |
45 STACK_ROOT=~/.stack # make it the same on all platforms
40 stack setup --no-terminal 46 stack setup --no-terminal
41 stack build --no-terminal 47 stack build --no-terminal
42 stack install --local-bin-path dist 48 stack install --local-bin-path dist