From 10fdc26bbaaa68de8d86c6a563f8a13cec05e050 Mon Sep 17 00:00:00 2001 From: jean-airoldie <25088801+jean-airoldie@users.noreply.github.com> Date: Sat, 4 Nov 2023 02:18:36 -0400 Subject: [PATCH] Update ci.yaml --- .github/workflows/ci.yaml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index beb279d..4e6059f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,20 +11,20 @@ jobs: rust: [stable] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive - - uses: actions/cache@v2 - # https://github.com/actions/cache/blob/main/examples.md#rust---cargo + # https://github.com/actions/cache/blob/main/examples.md#rust---cargo + - uses: actions/cache@v3 with: - path: | + path: | ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ - key: ${{ runner.os }}-cargo-check-${{ hashFiles('**/Cargo.lock') }} - - uses: actions-rs/toolchain@v1 + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - uses: actions-rs/toolchain@v2 with: toolchain: ${{ matrix.rust }} profile: minimal @@ -54,21 +54,20 @@ jobs: tests: ["", "--release", "--features=libsodium"] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive - - uses: actions/cache@v2 - # https://github.com/actions/cache/blob/main/examples.md#rust---cargo + # https://github.com/actions/cache/blob/main/examples.md#rust---cargo + - uses: actions/cache@v3 with: - path: | + path: | ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ - key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }} - name: Cargo test uses: actions-rs/cargo@v1 with: command: test - args: --manifest-path testcrate/Cargo.toml ${{ matrix.tests }} \ No newline at end of file + args: --manifest-path testcrate/Cargo.toml ${{ matrix.tests }}