From c46937acb73b00d13ffdd77eebd6a5863e4e2a26 Mon Sep 17 00:00:00 2001 From: Gabriel Lopez Date: Wed, 17 Jul 2024 13:18:11 -0500 Subject: [PATCH] Update basic.yml to cache only cargo deps Nightly toolchain is required for integration_tests --- .github/workflows/basic.yml | 12 ++++-------- .github/workflows/integration_tests.yml | 4 ++-- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index 9ee97bef6..170a474fc 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -20,16 +20,14 @@ jobs: target: wasm32-unknown-unknown override: true - - name: Rust Dependencies Cache + - name: Cache dependencies uses: actions/cache@v3 with: path: | ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ - target/ - artifacts/ - key: ${{ runner.os }}-cargo-with-artifacts-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-cargo-deps-${{ hashFiles('**/Cargo.lock') }} - name: Run tests uses: actions-rs/cargo@v1 @@ -64,16 +62,14 @@ jobs: override: true components: rustfmt, clippy - - name: Rust Dependencies Cache + - name: Cache dependencies uses: actions/cache@v3 with: path: | ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ - target/ - artifacts/ - key: ${{ runner.os }}-cargo-with-artifacts-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-cargo-deps-${{ hashFiles('**/Cargo.lock') }} - name: Run cargo fmt uses: actions-rs/cargo@v1 diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 49d1a8a11..66119a9f8 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -17,11 +17,11 @@ jobs: - name: Checkout sources uses: actions/checkout@v3 - - name: Install latest stable toolchain + - name: Install latest nightly toolchain uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: stable + toolchain: nightly target: wasm32-unknown-unknown override: true