Skip to content

Commit

Permalink
Improved cache
Browse files Browse the repository at this point in the history
As the Cargo.lock file doesn't get checked into the repository,
Cargo.toml is the next best thing.
  • Loading branch information
jhpratt committed Sep 8, 2020
1 parent f5f0fe7 commit 5a9ea25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Expand Up @@ -62,7 +62,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ matrix.target.triple }}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ matrix.target.triple }}-${{ hashFiles('**/Cargo.toml') }}

- name: Check feature powerset
uses: actions-rs/cargo@v1
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-wasm32-unknown-unknown-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-wasm32-unknown-unknown-${{ hashFiles('**/Cargo.toml') }}

# cargo-web is unable to handle the command generated by cargo-hack.

Expand Down Expand Up @@ -199,7 +199,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ matrix.os }}-${{ hashFiles('**/Cargo.lock') }}2
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ matrix.os }}-${{ hashFiles('**/Cargo.toml') }}2

- name: Test feature powerset (--lib)
uses: actions-rs/cargo@v1
Expand Down Expand Up @@ -265,7 +265,7 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ubuntu-latest-cargo-stable-ubuntu-latest-${{ hashFiles('**/Cargo.lock') }}
key: ubuntu-latest-cargo-stable-ubuntu-latest-${{ hashFiles('**/Cargo.toml') }}

- name: Run clippy
uses: actions-rs/clippy-check@v1
Expand Down

0 comments on commit 5a9ea25

Please sign in to comment.