From 0adc9d7183cd04f0209f4ee9701d4817f7251fc0 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 7 Jan 2024 21:46:04 +0900 Subject: [PATCH 1/2] Update actions/checkout action to v4 --- .github/workflows/ci.yml | 2 +- .github/workflows/rustfmt.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be3f7f4..eefac9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: name: test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install Rust run: | rustup update --no-self-update stable diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml index be7ef0f..85d6c4d 100644 --- a/.github/workflows/rustfmt.yml +++ b/.github/workflows/rustfmt.yml @@ -11,6 +11,6 @@ jobs: name: rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: sfackler/actions/rustup@master - uses: sfackler/actions/rustfmt@master From 768985531a2d7649874887a36ce0e19ad74cab9a Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 7 Jan 2024 21:47:33 +0900 Subject: [PATCH 2/2] Update actions/cache action to v3 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eefac9b..9b18b58 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: id: rust-version run: echo "::set-output name=version:$(rustc --version)" - name: Index cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.cargo/registry/index key: index-${{ github.run_id }} @@ -35,14 +35,14 @@ jobs: - name: Create lockfile run: cargo generate-lockfile - name: Registry cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.cargo/registry/cache key: registry-${{ hashFiles('Cargo.lock') }} - name: Fetch dependencies run: cargo fetch - name: Target cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: target key: target-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}