Skip to content

Commit

Permalink
Try using shared key for rust cache to speedup CI (#483)
Browse files Browse the repository at this point in the history
* Try using shared key for rust cache to speedup CI

* try cache linux check

* cache dvc, linux unit tests

* fix dvc cache path

* dont cache cargo cross builds
  • Loading branch information
Nutomic authored Apr 28, 2023
1 parent d522ace commit 9a95f5c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:

- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "rust"
cache-directories: ".dvc/tmp\n.dvc/cache"

- name: Build target
run: cargo check --target=${{ matrix.target }} --features native-tls/vendored --locked

Expand Down Expand Up @@ -73,6 +77,10 @@ jobs:

- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "rust"
cache-directories: ".dvc/tmp\n.dvc/cache"

- name: Check target
run: cargo test --target=${{ matrix.target }} --locked

Expand Down Expand Up @@ -195,6 +203,9 @@ jobs:

- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "rust"
cache-directories: ".dvc/tmp\n.dvc/cache"

- name: Use Node.js
uses: actions/setup-node@v3
Expand Down

0 comments on commit 9a95f5c

Please sign in to comment.