Skip to content

Commit

Permalink
ci: reuse more previous caches (Nix & Stack)
Browse files Browse the repository at this point in the history
  • Loading branch information
develop7 committed Jan 29, 2024
1 parent 43f552d commit 6f93b14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
uses: ./.github/actions/setup-nix
with:
cache-id: common
tools: style withTools memory tests release postgrestPackage
tools: style withTools memory tests release postgrestPackage

Lint-Style:
name: Lint & check code style
runs-on: ubuntu-latest
Expand Down Expand Up @@ -98,8 +98,6 @@ jobs:
uses: ./.github/actions/setup-nix
with:
tools: tests withTools
# It seems like they are installing the same set of derivations, so we can assign them the same cache id.
# This would decrease the amount of caches dowloaded on merge cache step and will prevent disk space issues.
cache-id: common

- name: Run spec tests
Expand Down Expand Up @@ -202,6 +200,8 @@ jobs:
with:
path: ${{ matrix.cache }}
key: cache-stack-${{ runner.os }}-${{ hashFiles('stack.yaml.lock') }}
restore-keys: |
cache-stack-${{ runner.os }}-
- name: Install dependencies
if: ${{ matrix.deps }}
run: ${{ matrix.deps }}
Expand Down

0 comments on commit 6f93b14

Please sign in to comment.