-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Share the Rust cache across jobs. (#145)
### What Apparently we are generating a new Rust cache per job. This grows really fast. Let's not do this. ### How By setting a "shared key", we can ensure that all jobs share the same cache. I have chosen the name arbitrarily.
- Loading branch information
1 parent
4be0b1d
commit 93904e0
Showing
5 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters