caching: add job suffix

master
Sameer Puri 4 years ago
parent ecb5e29474
commit b7521717b9

@ -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

@ -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

@ -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

@ -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

Loading…
Cancel
Save