mirror of
https://github.com/Swatinem/rust-cache
synced 2025-04-18 09:49:02 +00:00
Actually check whether to do cache-on-failure
This commit is contained in:
parent
8b100854e9
commit
cf9cfbbe54
8
.github/workflows/selftest.yml
vendored
8
.github/workflows/selftest.yml
vendored
|
@ -26,8 +26,6 @@ jobs:
|
|||
cache-on-failure: true
|
||||
|
||||
- run: |
|
||||
# cargo install cargo-deny --locked
|
||||
# cargo check
|
||||
# cargo test
|
||||
set
|
||||
wibble
|
||||
cargo install cargo-deny --locked
|
||||
cargo check
|
||||
cargo test
|
6
dist/restore/index.js
vendored
6
dist/restore/index.js
vendored
|
@ -59993,7 +59993,11 @@ async function rm(parent, dirent) {
|
|||
|
||||
async function run() {
|
||||
try {
|
||||
core.exportVariable("CACHE_ON_FAILURE", "true");
|
||||
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();
|
||||
const bins = await getCargoBins();
|
||||
|
|
|
@ -4,7 +4,11 @@ import { cleanTarget, getCacheConfig, getCargoBins, getPackages, stateBins, stat
|
|||
|
||||
async function run() {
|
||||
try {
|
||||
core.exportVariable("CACHE_ON_FAILURE", "true")
|
||||
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…
Reference in a new issue