mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-14 10:06:53 +08:00
Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26bda12c02 | ||
|
|
08f6ca9894 | ||
|
|
d696810071 | ||
|
|
643194b98c | ||
|
|
c314effe59 | ||
|
|
c38652fe18 | ||
|
|
ccbc2ac68e | ||
|
|
936559d9c8 | ||
|
|
c2e869b485 | ||
|
|
1835692219 | ||
|
|
24702b2b39 | ||
|
|
8441b1201b | ||
|
|
8684ae14b7 | ||
|
|
85cc05cd46 | ||
|
|
6ee77ae122 | ||
|
|
2f4c647fce |
6
.github/workflows/CI.yml
vendored
6
.github/workflows/CI.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
run: 'write("random.txt", string(rand(10)))'
|
run: 'write("random.txt", string(rand(10)))'
|
||||||
- name: Set cache-name as output
|
- name: Set cache-name as output
|
||||||
id: name
|
id: name
|
||||||
run: echo "::set-output name=cache-name::${{ hashFiles('random.txt') }}"
|
run: echo "cache-name=${{ hashFiles('random.txt') }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
test-save:
|
test-save:
|
||||||
needs: generate-key
|
needs: generate-key
|
||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
||||||
- name: Save cache
|
- name: Save cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -56,7 +56,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
||||||
- name: Restore cache
|
- name: Restore cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: ./
|
uses: ./
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ That is why caching the registries is disabled by default.
|
|||||||
This action is a wrapper around <https://github.com/actions/cache>.
|
This action is a wrapper around <https://github.com/actions/cache>.
|
||||||
In summary, this action stores the files in the aforementioned paths in one compressed file when running for the first time.
|
In summary, this action stores the files in the aforementioned paths in one compressed file when running for the first time.
|
||||||
This cached file is then restored upon the second run.
|
This cached file is then restored upon the second run.
|
||||||
The benefit of this is that downloading one big file is more quick than downloading many different files from many different locations.
|
The benefit of this is that downloading one big file is quicker than downloading many different files from many different locations.
|
||||||
|
|
||||||
## Third Party Notice
|
## Third Party Notice
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ runs:
|
|||||||
echo "REGISTRIES_PATH=$R_PATH" >> $GITHUB_ENV
|
echo "REGISTRIES_PATH=$R_PATH" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed
|
- uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
|
||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
path: "${{ format('{0}\n{1}\n{2}', env.ARTIFACTS_PATH, env.PACKAGES_PATH, env.REGISTRIES_PATH) }}"
|
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 }}-
|
${{ runner.os }}-test-${{ inputs.cache-name }}-
|
||||||
|
|
||||||
- id: hit
|
- id: hit
|
||||||
run: echo "::set-output name=cache-hit::$(echo $CACHE_HIT)"
|
run: echo "cache-hit=$CACHE_HIT" >> $GITHUB_OUTPUT
|
||||||
env:
|
env:
|
||||||
CACHE_HIT: ${{ steps.cache.outputs.cache-hit }}
|
CACHE_HIT: ${{ steps.cache.outputs.cache-hit }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user