mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-13 01:46:52 +08:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a96f53eeda | ||
|
|
bb2ad8a6dc | ||
|
|
b45946153f | ||
|
|
26bda12c02 | ||
|
|
08f6ca9894 | ||
|
|
d696810071 | ||
|
|
643194b98c | ||
|
|
c314effe59 | ||
|
|
c38652fe18 | ||
|
|
ccbc2ac68e | ||
|
|
936559d9c8 | ||
|
|
c2e869b485 | ||
|
|
1835692219 | ||
|
|
24702b2b39 | ||
|
|
8441b1201b |
6
.github/workflows/CI.yml
vendored
6
.github/workflows/CI.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
run: 'write("random.txt", string(rand(10)))'
|
||||
- name: Set cache-name as output
|
||||
id: name
|
||||
run: echo "::set-output name=cache-name::${{ hashFiles('random.txt') }}"
|
||||
run: echo "cache-name=${{ hashFiles('random.txt') }}" >> $GITHUB_OUTPUT
|
||||
|
||||
test-save:
|
||||
needs: generate-key
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
|
||||
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
|
||||
- name: Save cache
|
||||
id: cache
|
||||
uses: ./
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
|
||||
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
|
||||
- name: Restore cache
|
||||
id: cache
|
||||
uses: ./
|
||||
|
||||
@@ -38,7 +38,7 @@ runs:
|
||||
echo "REGISTRIES_PATH=$R_PATH" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0
|
||||
- uses: actions/cache@4723a57e26efda3a62cbde1812113b730952852d
|
||||
id: cache
|
||||
with:
|
||||
path: "${{ format('{0}\n{1}\n{2}', env.ARTIFACTS_PATH, env.PACKAGES_PATH, env.REGISTRIES_PATH) }}"
|
||||
@@ -47,7 +47,7 @@ runs:
|
||||
${{ runner.os }}-test-${{ inputs.cache-name }}-
|
||||
|
||||
- id: hit
|
||||
run: echo "::set-output name=cache-hit::$(echo $CACHE_HIT)"
|
||||
run: echo "cache-hit=$CACHE_HIT" >> $GITHUB_OUTPUT
|
||||
env:
|
||||
CACHE_HIT: ${{ steps.cache.outputs.cache-hit }}
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user