mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-14 01:56:54 +08:00
Compare commits
12 Commits
cv/release
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
227b3767fc | ||
|
|
9a3120aab8 | ||
|
|
43522e389d | ||
|
|
e8472695fb | ||
|
|
2061bcf01c | ||
|
|
c4f371876b | ||
|
|
38850d7b75 | ||
|
|
429bb24537 | ||
|
|
8af8844cd0 | ||
|
|
424a20aa56 | ||
|
|
5dc38e58e3 | ||
|
|
05a577a682 |
12
.github/workflows/CI.yml
vendored
12
.github/workflows/CI.yml
vendored
@@ -59,7 +59,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
JULIA_DEPOT_PATH: /tmp/julia-depot
|
JULIA_DEPOT_PATH: /tmp/julia-depot
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- name: Set cache-name
|
- name: Set cache-name
|
||||||
id: cache-name
|
id: cache-name
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -117,7 +117,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
JULIA_DEPOT_PATH: /tmp/julia-depot
|
JULIA_DEPOT_PATH: /tmp/julia-depot
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- uses: julia-actions/setup-julia@v2
|
- uses: julia-actions/setup-julia@v2
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
@@ -161,7 +161,7 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
cache-name: ${{ steps.cache-name.outputs.cache-name }}
|
cache-name: ${{ steps.cache-name.outputs.cache-name }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- name: Set cache-name
|
- name: Set cache-name
|
||||||
id: cache-name
|
id: cache-name
|
||||||
run: |
|
run: |
|
||||||
@@ -193,7 +193,7 @@ jobs:
|
|||||||
needs: test-save-nomatrix
|
needs: test-save-nomatrix
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- name: Restore cache
|
- name: Restore cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: ./
|
uses: ./
|
||||||
@@ -233,7 +233,7 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
cache-name: ${{ steps.cache-name.outputs.cache-name }}
|
cache-name: ${{ steps.cache-name.outputs.cache-name }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- name: Set cache-name
|
- name: Set cache-name
|
||||||
id: cache-name
|
id: cache-name
|
||||||
run: |
|
run: |
|
||||||
@@ -259,7 +259,7 @@ jobs:
|
|||||||
needs: test-save-cloned-registry
|
needs: test-save-cloned-registry
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- name: Add General registry clone
|
- name: Add General registry clone
|
||||||
shell: julia --color=yes {0}
|
shell: julia --color=yes {0}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- uses: julia-actions/setup-julia@v2
|
- uses: julia-actions/setup-julia@v2
|
||||||
- uses: julia-actions/cache@v2
|
- uses: julia-actions/cache@v2
|
||||||
- uses: julia-actions/julia-buildpkg@v1
|
- uses: julia-actions/julia-buildpkg@v1
|
||||||
@@ -79,7 +79,7 @@ The cache key that the cache will be saved as is based on:
|
|||||||
- The run attempt number
|
- The run attempt number
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> If there is job concurrency that is not fully defined by a matrix you should ensure that `cache-name` is
|
> If there is job concurrency that is not fully defined by a matrix you should ensure that `cache-name` is
|
||||||
> unique for each concurrent job, otherwise caching may not be effective.
|
> unique for each concurrent job, otherwise caching may not be effective.
|
||||||
|
|
||||||
### Cache Retention
|
### Cache Retention
|
||||||
@@ -129,7 +129,7 @@ For example, this workflow will ensure that the cache is saved if a step fails (
|
|||||||
id: julia-cache-save
|
id: julia-cache-save
|
||||||
if: cancelled() || failure()
|
if: cancelled() || failure()
|
||||||
uses: actions/cache/save@v4
|
uses: actions/cache/save@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ steps.julia-cache.outputs.cache-paths }}
|
${{ steps.julia-cache.outputs.cache-paths }}
|
||||||
key: ${{ steps.julia-cache.outputs.cache-key }}
|
key: ${{ steps.julia-cache.outputs.cache-key }}
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ runs:
|
|||||||
env:
|
env:
|
||||||
MATRIX_JSON: ${{ toJSON(matrix) }}
|
MATRIX_JSON: ${{ toJSON(matrix) }}
|
||||||
|
|
||||||
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
|
||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
@@ -178,7 +178,7 @@ runs:
|
|||||||
# - https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
|
# - https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
|
||||||
|
|
||||||
# Not windows
|
# Not windows
|
||||||
- uses: pyTooling/Actions/with-post-step@d6342484cd335d4c9c63d4f52f267c54d5bc3b19 # v5.4.0
|
- uses: pyTooling/Actions/with-post-step@370c306306304663febee1525552a09e061588fa # v7.4.2
|
||||||
if: ${{ inputs.delete-old-caches != 'false' &&
|
if: ${{ inputs.delete-old-caches != 'false' &&
|
||||||
github.ref != format('refs/heads/{0}', github.event.repository.default_branch) &&
|
github.ref != format('refs/heads/{0}', github.event.repository.default_branch) &&
|
||||||
runner.OS != 'Windows' }}
|
runner.OS != 'Windows' }}
|
||||||
@@ -191,7 +191,7 @@ runs:
|
|||||||
GH_TOKEN: ${{ inputs.token }}
|
GH_TOKEN: ${{ inputs.token }}
|
||||||
|
|
||||||
# Windows (because this action uses command prompt on windows)
|
# Windows (because this action uses command prompt on windows)
|
||||||
- uses: pyTooling/Actions/with-post-step@d6342484cd335d4c9c63d4f52f267c54d5bc3b19 # v5.4.0
|
- uses: pyTooling/Actions/with-post-step@370c306306304663febee1525552a09e061588fa # v7.4.2
|
||||||
if: ${{ inputs.delete-old-caches != 'false' &&
|
if: ${{ inputs.delete-old-caches != 'false' &&
|
||||||
github.ref != format('refs/heads/{0}', github.event.repository.default_branch) &&
|
github.ref != format('refs/heads/{0}', github.event.repository.default_branch) &&
|
||||||
runner.OS == 'Windows' }}
|
runner.OS == 'Windows' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user