From b7521717b9de8491cea16006510de23c2eb00d4e Mon Sep 17 00:00:00 2001 From: Sameer Puri Date: Thu, 12 Aug 2021 19:09:43 -0400 Subject: [PATCH] caching: add job suffix --- .github/workflows/cli.yml | 4 +--- .github/workflows/lib.yml | 4 +--- .github/workflows/web-deploy.yml | 4 +--- .github/workflows/web.yml | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index cec81e2..bf09b04 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -16,8 +16,6 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }} - restore-keys: | - cargo-${{ runner.os }}- + key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-cli - name: Build run: cargo build -p svg2gcode-cli diff --git a/.github/workflows/lib.yml b/.github/workflows/lib.yml index 21d18f9..80fe59b 100644 --- a/.github/workflows/lib.yml +++ b/.github/workflows/lib.yml @@ -35,9 +35,7 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }} - restore-keys: | - cargo-${{ runner.os }}- + key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-lib - uses: actions-rs/cargo@v1 with: command: build diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml index 4ae3046..40d13b2 100644 --- a/.github/workflows/web-deploy.yml +++ b/.github/workflows/web-deploy.yml @@ -26,9 +26,7 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }} - restore-keys: | - cargo-${{ runner.os }}- + key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-web-deploy - uses: jetli/trunk-action@v0.1.0 - uses: jetli/wasm-bindgen-action@v0.1.0 diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 3e19ebb..9648564 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -14,8 +14,6 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }} - restore-keys: | - cargo-${{ runner.os }}- + key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-web - name: Build run: cargo build -p svg2gcode-web