mirror of
https://github.com/Swatinem/rust-cache
synced 2026-03-23 00:09:13 +00:00
Cache-on-failure support (#22)
This commit is contained in:
parent
842ef286ff
commit
536c94f32c
5 changed files with 18 additions and 2 deletions
|
|
@ -4,6 +4,11 @@ import { cleanTarget, getCacheConfig, getCargoBins, getPackages, stateBins, stat
|
|||
|
||||
async function run() {
|
||||
try {
|
||||
var cacheOnFailure = core.getInput("cache-on-failure").toLowerCase()
|
||||
if (cacheOnFailure !== "true") {
|
||||
cacheOnFailure = "false"
|
||||
}
|
||||
core.exportVariable("CACHE_ON_FAILURE", cacheOnFailure)
|
||||
core.exportVariable("CARGO_INCREMENTAL", 0);
|
||||
|
||||
const { paths, key, restoreKeys } = await getCacheConfig();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue