From c7c731d404592f04ba72c148d6f94a7717fe84f8 Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 28 Jun 2021 20:20:16 +0200 Subject: ci: configure cache for haskell stack --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.github/workflows') 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: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: ~/.stack + key: compiler-${{ runner.os }}-${{ hashFiles('compiler/stack.yaml') }} - uses: haskell/actions/setup@v1 with: ghc-version: 8.10.4 enable-stack: true - name: Build Haskell Stack project working-directory: compiler + shell: bash run: | + STACK_ROOT=~/.stack # make it the same on all platforms stack setup --no-terminal stack build --no-terminal stack install --local-bin-path dist -- cgit v1.2.3