Skip to content

Commit

Permalink
Key the Nix store on the workflow file
Browse files Browse the repository at this point in the history
This allows us to address issues with caching within the workflow file.
  • Loading branch information
rvermeulen committed Jan 29, 2024
1 parent 750e8be commit 1dda311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
uses: actions/cache@v4
id: cache
with:
path: /nix/store
key: ${{ runner.os }}-${{ hashFiles('tooling/**') }}
path: ${{ runner.temp }}/nix
key: ${{ runner.os }}-${{ hashFiles('tooling/**') }}-${{ hashFiles('.github/workflows/codeql.yml')}}

- name: Prepare Nix Store
if: steps.cache.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 1dda311

Please sign in to comment.