From a3a7de49ff8a426c04d0b4da6e51c7ce0467880e Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 6 Nov 2022 14:45:26 -0300 Subject: [PATCH] feat(ci): define workspace for rust-cache, improving cache key Ref https://github.com/Swatinem/rust-cache/pull/90 --- .github/workflows/artifacts-updater.yml | 2 +- .github/workflows/bench.yml | 2 +- .github/workflows/check-generated-files.yml | 2 ++ .github/workflows/covector-version-or-publish.yml | 2 +- .github/workflows/lint-fmt-core.yml | 2 ++ .github/workflows/test-core.yml | 2 ++ .github/workflows/udeps.yml | 2 +- 7 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/artifacts-updater.yml b/.github/workflows/artifacts-updater.yml index 4ef88644400..366a4b3c6f2 100644 --- a/.github/workflows/artifacts-updater.yml +++ b/.github/workflows/artifacts-updater.yml @@ -45,7 +45,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: workspaces: | - . + core -> ../target tooling/cli - name: build and install cli.rs diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 702ef1963aa..fff4c529da4 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -55,7 +55,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: workspaces: | - . + core -> ../target tooling/bench/tests - name: run benchmarks diff --git a/.github/workflows/check-generated-files.yml b/.github/workflows/check-generated-files.yml index 538d464bc62..9f7e49ef11b 100644 --- a/.github/workflows/check-generated-files.yml +++ b/.github/workflows/check-generated-files.yml @@ -70,6 +70,8 @@ jobs: sudo apt-get install -y libgtk-3-dev - uses: Swatinem/rust-cache@v2 + with: + workspaces: core -> ../target - name: generate schema.json uses: actions-rs/cargo@v1 diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index 135fa3afa03..7f10ab435c0 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -35,7 +35,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: workspaces: | - . + core -> ../target tooling/cli - name: build CLI diff --git a/.github/workflows/lint-fmt-core.yml b/.github/workflows/lint-fmt-core.yml index 57c69eed4d8..b24601b4d13 100644 --- a/.github/workflows/lint-fmt-core.yml +++ b/.github/workflows/lint-fmt-core.yml @@ -72,6 +72,8 @@ jobs: components: clippy - uses: Swatinem/rust-cache@v2 + with: + workspaces: core -> ../target - uses: actions-rs/clippy-check@v1 with: diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index abc3583d6b2..00e22596771 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -65,6 +65,8 @@ jobs: sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libayatana-appindicator3-dev librsvg2-dev patchelf - uses: Swatinem/rust-cache@v2 + with: + workspaces: core -> ../target - name: test run: | diff --git a/.github/workflows/udeps.yml b/.github/workflows/udeps.yml index f1e45281f71..cdaf0205de8 100644 --- a/.github/workflows/udeps.yml +++ b/.github/workflows/udeps.yml @@ -142,7 +142,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: workspaces: | - . + core -> ../target tooling/cli tooling/bundler