From feaeb7870fafaaa338158b904a5a1d090941ee6f Mon Sep 17 00:00:00 2001 From: Linda_pp Date: Fri, 17 Feb 2023 09:55:51 +0900 Subject: [PATCH] fix(ci): fix deprecation warnings on CI (#58) * fix(ci): fix deprecation warnings on CI * fix(ci): remove unnecessary step in CI workflow --- .github/workflows/ci.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4440e865..1aa5e3e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,19 +19,16 @@ jobs: matrix: rust: ["1.59.0", "stable"] steps: - - uses: hecrj/setup-rust-action@967aec96c6a27a0ce15c1dac3aaba332d60565e2 + - uses: hecrj/setup-rust-action@50a120e4d34903c2c1383dec0e9b1d349a9cc2b1 with: rust-version: ${{ matrix.rust }} components: rustfmt,clippy - uses: actions/checkout@v1 - - name: "Get cargo bin directory" - id: cargo-bin-dir - run: echo "::set-output name=dir::$HOME/.cargo/bin" - name: "Cache cargo make" id: cache-cargo-make - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: ${{ steps.cargo-bin-dir.outputs.dir }}/cargo-make + path: ~/.cargo/bin/cargo-make key: ${{ runner.os }}-${{ matrix.rust }}-cargo-make-${{ env.CI_CARGO_MAKE_VERSION }} - name: "Install cargo-make" if: steps.cache-cargo-make.outputs.cache-hit != 'true' @@ -48,19 +45,16 @@ jobs: rust: ["1.59.0", "stable"] steps: - uses: actions/checkout@v1 - - uses: hecrj/setup-rust-action@967aec96c6a27a0ce15c1dac3aaba332d60565e2 + - uses: hecrj/setup-rust-action@50a120e4d34903c2c1383dec0e9b1d349a9cc2b1 with: rust-version: ${{ matrix.rust }} components: rustfmt,clippy - uses: actions/checkout@v1 - - name: "Get cargo bin directory" - id: cargo-bin-dir - run: echo "::set-output name=dir::$HOME\.cargo\bin" - name: "Cache cargo make" id: cache-cargo-make - uses: actions/cache@v2 + uses: actions/cache@v3 with: - path: ${{ steps.cargo-bin-dir.outputs.dir }}\cargo-make.exe + path: ~\.cargo\bin\cargo-make.exe key: ${{ runner.os }}-${{ matrix.rust }}-cargo-make-${{ env.CI_CARGO_MAKE_VERSION }} - name: "Install cargo-make" if: steps.cache-cargo-make.outputs.cache-hit != 'true'