From 5c0027be59553f085589ce7b11cb596a3704aff2 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 25 Jan 2024 19:21:25 -0600 Subject: [PATCH] Update to actions/cache@v4 (#7823) Resolves some warnings on CI about using Node 16 instead of Node 20 --- .github/actions/install-cargo-vet/action.yml | 2 +- .github/actions/install-rust/action.yml | 4 ++-- .github/workflows/main.yml | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/actions/install-cargo-vet/action.yml b/.github/actions/install-cargo-vet/action.yml index ddbf87e9b591..a964f79cbc3d 100644 --- a/.github/actions/install-cargo-vet/action.yml +++ b/.github/actions/install-cargo-vet/action.yml @@ -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 }} diff --git a/.github/actions/install-rust/action.yml b/.github/actions/install-rust/action.yml index b15c33c0a4cd..41d5286082e4 100644 --- a/.github/actions/install-rust/action.yml +++ b/.github/actions/install-rust/action.yml @@ -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 }} @@ -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/ diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 55dcc0c51795..b18fbcf0a958 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} @@ -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 }} @@ -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 @@ -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 }}