aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2021-06-28 20:20:16 +0200
committerpacien2021-06-28 21:21:46 +0200
commitc7c731d404592f04ba72c148d6f94a7717fe84f8 (patch)
treee28ac6573042aeec3f92e7758be9517c94c0f2a7
parent01fc05f04f3b043fe863f29dad953a2ca1f80fcd (diff)
downloadldgallery-c7c731d404592f04ba72c148d6f94a7717fe84f8.tar.gz
ci: configure cache for haskell stack
-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