Skip to content

Commit

Permalink
try cache
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-bee committed Oct 24, 2024
1 parent 69b4640 commit 5d6e3b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
with:
path: foo/bin
key: foo-${{ hashFiles('foo/src/**') }}
restore-keys: |
foo
foo-bla
- name: Write dummy file and save cache if needed
if: steps.cache.outputs.cache-hit != 'true'
Expand All @@ -29,6 +32,12 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Restore cached Primes
uses: actions/cache/restore@v4
with:
path: foo/bin
key: foo

- name: Use cached bin folder
run: |
ls -la foo/bin/
Expand Down

0 comments on commit 5d6e3b7

Please sign in to comment.