diff --git a/.github/workflows/cargo-build.yaml b/.github/workflows/cargo-build.yaml index 98c9e344..f782e47c 100644 --- a/.github/workflows/cargo-build.yaml +++ b/.github/workflows/cargo-build.yaml @@ -23,6 +23,8 @@ jobs: rustup show - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" # share the cache across jobs - name: build crates run: | diff --git a/.github/workflows/cargo-machete.yaml b/.github/workflows/cargo-machete.yaml index ec913608..d6500222 100644 --- a/.github/workflows/cargo-machete.yaml +++ b/.github/workflows/cargo-machete.yaml @@ -19,6 +19,8 @@ jobs: cargo install cargo-machete - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" # share the cache across jobs - name: find unused dependencies run: | diff --git a/.github/workflows/cargo-test.yaml b/.github/workflows/cargo-test.yaml index 74edb192..65dc591b 100644 --- a/.github/workflows/cargo-test.yaml +++ b/.github/workflows/cargo-test.yaml @@ -27,6 +27,8 @@ jobs: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" # share the cache across jobs - name: run tests run: | @@ -64,6 +66,8 @@ jobs: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" # share the cache across jobs - id: configuration name: extract job configuration @@ -132,6 +136,8 @@ jobs: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" # share the cache across jobs - name: run tests run: | @@ -181,6 +187,8 @@ jobs: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" # share the cache across jobs - name: start dependencies uses: isbang/compose-action@v1.5.1 diff --git a/.github/workflows/check-format.yaml b/.github/workflows/check-format.yaml index f6cf88fe..c371591c 100644 --- a/.github/workflows/check-format.yaml +++ b/.github/workflows/check-format.yaml @@ -18,6 +18,8 @@ jobs: rustup show - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" # share the cache across jobs - name: check formatting run: | diff --git a/.github/workflows/schema-definitions.yaml b/.github/workflows/schema-definitions.yaml index 5d620a5c..a1c67196 100644 --- a/.github/workflows/schema-definitions.yaml +++ b/.github/workflows/schema-definitions.yaml @@ -16,6 +16,8 @@ jobs: run: rustup show - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" # share the cache across jobs - name: OpenAPI Definitions run: cargo test --bin openapi-generator