Skip to content

Commit

Permalink
feat(ci): define workspace for rust-cache, improving cache key (#5559)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Nov 6, 2022
1 parent 878421b commit 1aba178
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/artifacts-updater.yml
Expand Up @@ -45,7 +45,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
core -> ../target
tooling/cli
- name: build and install cli.rs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
core -> ../target
tooling/bench/tests
- name: run benchmarks
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check-generated-files.yml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/covector-version-or-publish.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
core -> ../target
tooling/cli
- name: build CLI
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint-fmt-core.yml
Expand Up @@ -72,6 +72,8 @@ jobs:
components: clippy

- uses: Swatinem/rust-cache@v2
with:
workspaces: core -> ../target

- uses: actions-rs/clippy-check@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-core.yml
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/udeps.yml
Expand Up @@ -142,7 +142,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
core -> ../target
tooling/cli
tooling/bundler
Expand Down

0 comments on commit 1aba178

Please sign in to comment.