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 }}