feat(ci): define workspace for rust-cache, improving cache key (#5559)

This commit is contained in:
Lucas Fernandes Nogueira 2022-11-06 16:27:29 -03:00 committed by GitHub
parent 878421beb7
commit 1aba1780de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 4 deletions

View File

@ -45,7 +45,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
core -> ../target
tooling/cli
- name: build and install cli.rs

View File

@ -55,7 +55,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
core -> ../target
tooling/bench/tests
- name: run benchmarks

View File

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

View File

@ -35,7 +35,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
core -> ../target
tooling/cli
- name: build CLI

View File

@ -72,6 +72,8 @@ jobs:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: core -> ../target
- uses: actions-rs/clippy-check@v1
with:

View File

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

View File

@ -142,7 +142,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
core -> ../target
tooling/cli
tooling/bundler