mirror of
https://github.com/actions/cache.git
synced 2026-03-10 09:01:46 +08:00
Compare commits
4 Commits
fd2d5219f6
...
32f8d56034
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32f8d56034 | ||
|
|
638ed79f9d | ||
|
|
3862dccb17 | ||
|
|
028d01341f |
@ -19,16 +19,19 @@ See ["Caching dependencies to speed up workflows"](https://docs.github.com/en/ac
|
|||||||
|
|
||||||
The cache backend service has been rewritten from the ground up for improved performance and reliability. [actions/cache](https://github.com/actions/cache) now integrates with the new cache service (v2) APIs.
|
The cache backend service has been rewritten from the ground up for improved performance and reliability. [actions/cache](https://github.com/actions/cache) now integrates with the new cache service (v2) APIs.
|
||||||
|
|
||||||
The new service will gradually roll out as of **February 1st, 2025**. The legacy service will also be sunset on the same date. Changes in these release are **fully backward compatible**.
|
The new service will gradually roll out as of **February 1st, 2025**. The legacy service will also be sunset on the same date. Changes in these releases are **fully backward compatible**.
|
||||||
|
|
||||||
**We are deprecating some versions of this action**. We recommend upgrading to version `v4` or `v3` as soon as possible before **February 1st, 2025.** (Upgrade instructions below).
|
**We are deprecating some versions of this action**. We recommend upgrading to version `v4` or `v3` as soon as possible before **February 1st, 2025.** (Upgrade instructions below).
|
||||||
|
|
||||||
If you are using pinned SHAs, please use the SHAs of versions `v4.2.0` or `v3.4.0`
|
If you are using pinned SHAs, please use the SHAs of versions `v4.2.0` or `v3.4.0`.
|
||||||
|
|
||||||
If you do not upgrade, all workflow runs using any of the deprecated [actions/cache](https://github.com/actions/cache) will fail.
|
If you do not upgrade, all workflow runs using any of the deprecated [actions/cache](https://github.com/actions/cache) will fail.
|
||||||
|
|
||||||
Upgrading to the recommended versions will not break your workflows.
|
Upgrading to the recommended versions will not break your workflows.
|
||||||
|
|
||||||
|
> **Additionally, if you are managing your own GitHub runners, you must update your runner version to `2.231.0` or newer to ensure compatibility with the new cache service.**
|
||||||
|
> Failure to update both the action version and your runner version may result in workflow failures after the migration date.
|
||||||
|
|
||||||
Read more about the change & access the migration guide: [reference to the announcement](https://github.com/actions/cache/discussions/1510).
|
Read more about the change & access the migration guide: [reference to the announcement](https://github.com/actions/cache/discussions/1510).
|
||||||
|
|
||||||
### v4
|
### v4
|
||||||
|
|||||||
33
examples.md
33
examples.md
@ -40,6 +40,7 @@
|
|||||||
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
|
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
|
||||||
- [Swift - Swift Package Manager](#swift---swift-package-manager)
|
- [Swift - Swift Package Manager](#swift---swift-package-manager)
|
||||||
- [Swift - Mint](#swift---mint)
|
- [Swift - Mint](#swift---mint)
|
||||||
|
- [* - ASDF](#---asdf)
|
||||||
- [* - Bazel](#---bazel)
|
- [* - Bazel](#---bazel)
|
||||||
|
|
||||||
## Bun
|
## Bun
|
||||||
@ -681,6 +682,38 @@ steps:
|
|||||||
${{ runner.os }}-mint-
|
${{ runner.os }}-mint-
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## * - ASDF
|
||||||
|
|
||||||
|
[ASDF](https://asdf-vm.com), see [#235](https://github.com/asdf-vm/actions/issues/235):
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Setup ASDF itself
|
||||||
|
uses: asdf-vm/actions/setup@v3
|
||||||
|
|
||||||
|
- name: Cache ASDF
|
||||||
|
uses: actions/cache@v4
|
||||||
|
id: asdf-cache
|
||||||
|
with:
|
||||||
|
# https://github.com/asdf-vm/asdf/blob/master/.gitignore
|
||||||
|
path: |
|
||||||
|
~/.asdf/installs
|
||||||
|
~/.asdf/plugins
|
||||||
|
~/.asdf/shims
|
||||||
|
key: ${{ runner.os }}-asdf-tools-${{ hashFiles('.tool-versions') }}
|
||||||
|
restore-keys: ${{ runner.os }}-asdf-tools-
|
||||||
|
|
||||||
|
- name: Install ASDF plugins
|
||||||
|
uses: asdf-vm/actions/install@v3
|
||||||
|
# See https://github.com/asdf-vm/actions/issues/445
|
||||||
|
if: ${{ steps.asdf-cache.outputs.cache-hit != 'true' }}
|
||||||
|
with:
|
||||||
|
asdf_branch: v0.14.0
|
||||||
|
|
||||||
|
- name: Reshim installed ASDF tools
|
||||||
|
shell: bash
|
||||||
|
run: asdf reshim
|
||||||
|
```
|
||||||
|
|
||||||
## * - Bazel
|
## * - Bazel
|
||||||
|
|
||||||
[`bazelisk`](https://github.com/bazelbuild/bazelisk) does not have be to separately downloaded and installed because it's already included in GitHub's `ubuntu-latest` and `macos-latest` base images.
|
[`bazelisk`](https://github.com/bazelbuild/bazelisk) does not have be to separately downloaded and installed because it's already included in GitHub's `ubuntu-latest` and `macos-latest` base images.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user