Skip to content

Commit

Permalink
Update to actions/cache@v4 (#7823)
Browse files Browse the repository at this point in the history
Resolves some warnings on CI about using Node 16 instead of Node 20
  • Loading branch information
alexcrichton authored Jan 26, 2024
1 parent c49a256 commit 5c0027b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/install-cargo-vet/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
runs:
using: composite
steps:
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/cargo-vet
key: cargo-vet-bin-${{ inputs.version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/install-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ runs:
run: echo CARGO_REGISTRY_CACHE_KEY=$(date +%Y%m%d) >> $GITHUB_ENV

- name: Cache Cargo registry index
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cargo/registry/index/
key: cargo-registry-${{ env.CARGO_REGISTRY_CACHE_KEY }}
Expand All @@ -90,7 +90,7 @@ runs:
restore-keys: cargo-registry-

- name: Cache crate sources for dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/cache/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ jobs:
- run: cd crates/c-api && doxygen doxygen.conf

# install mdbook, build the docs, and test the docs
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/mdbook
key: cargo-mdbook-bin-${{ env.CARGO_MDBOOK_VERSION }}
Expand Down Expand Up @@ -324,7 +324,7 @@ jobs:
- run: rustup target add aarch64-linux-android
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/cargo-ndk
key: cargo-ndk-bin-${{ env.CARGO_NDK_VERSION }}
Expand Down Expand Up @@ -439,7 +439,7 @@ jobs:

- run: cargo fetch --locked

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/qemu
key: qemu-${{ matrix.target }}-${{ env.QEMU_BUILD_VERSION }}-patchcpuinfo
Expand Down Expand Up @@ -659,7 +659,7 @@ jobs:
with:
toolchain: nightly-2023-10-10
- run: rustup component add rust-src miri
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/cargo-nextest
key: cargo-nextest-bin-${{ env.CARGO_NEXTEST_VERSION }}
Expand Down

0 comments on commit 5c0027b

Please sign in to comment.