Skip to content

Commit

Permalink
Update basic.yml to cache only cargo deps
Browse files Browse the repository at this point in the history
Nightly toolchain is required for integration_tests
  • Loading branch information
ismellike committed Jul 17, 2024
1 parent 7773cb0 commit c46937a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c46937a

Please sign in to comment.