From c82fc69945298a2e071d37abd386572bbd9aaa72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pomp=C3=A9ry?= Date: Tue, 16 Apr 2024 23:41:07 +0200 Subject: [PATCH] build: update github actions to latest versions --- .github/workflows/test.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 41594ed..4bae588 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,20 +7,19 @@ jobs: name: Rust project runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable + - uses: actions/checkout@v3 - name: Cache target - uses: actions/cache@v2 + uses: actions/cache@v4 env: cache-name: cache-default-target-and-lockfile with: path: | endpoint/target - endpoint/Cargo.lock - ~/.rustup - key: ${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }} + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} - name: CI env: PRIV_KEY: ${{ secrets.PRIV_KEY }}