Skip to content

Commit 1dda311

Browse files
committed
Key the Nix store on the workflow file
This allows us to address issues with caching within the workflow file.
1 parent 750e8be commit 1dda311

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎.github/workflows/codeql.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
uses: actions/cache@v4
3030
id: cache
3131
with:
32-
path: /nix/store
33-
key: ${{runner.os }}-${{hashFiles('tooling/**') }}
32+
path: ${{runner.temp }}/nix
33+
key: ${{runner.os }}-${{hashFiles('tooling/**') }}-${{hashFiles('.github/workflows/codeql.yml')}}
3434

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

0 commit comments

Comments
(0)