Skip to content

Commit

Permalink
ci: add target to cache keys
Browse files Browse the repository at this point in the history
  • Loading branch information
1Conan committed Apr 7, 2023
1 parent 443adba commit 3d06a6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:

jobs:
build:
name: Build
name: Build ${{ matrix.target }}
strategy:
fail-fast: true
matrix:
Expand Down Expand Up @@ -67,19 +67,19 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.cargo/registry
key: cargo-registry-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
key: cargo-registry-${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }}

- name: Cache cargo bin
uses: actions/cache@v2
with:
path: ~/.cargo/bin
key: cargo-bin-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
key: cargo-bin-${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }}

- name: Cache cargo build
uses: actions/cache@v2
with:
path: target
key: cargo-build-target-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
key: cargo-build-target-${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }}

- name: Install latest Rust stable
uses: actions-rs/toolchain@v1
Expand Down

0 comments on commit 3d06a6a

Please sign in to comment.