mirror of
https://github.com/Swatinem/rust-cache.git
synced 2025-08-14 20:55:13 +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
|
cache-on-failure: true
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
# cargo install cargo-deny --locked
|
cargo install cargo-deny --locked
|
||||||
# cargo check
|
cargo check
|
||||||
# cargo test
|
cargo test
|
||||||
set
|
|
||||||
wibble
|
|
6
dist/restore/index.js
vendored
6
dist/restore/index.js
vendored
@ -59993,7 +59993,11 @@ async function rm(parent, dirent) {
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
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);
|
core.exportVariable("CARGO_INCREMENTAL", 0);
|
||||||
const { paths, key, restoreKeys } = await getCacheConfig();
|
const { paths, key, restoreKeys } = await getCacheConfig();
|
||||||
const bins = await getCargoBins();
|
const bins = await getCargoBins();
|
||||||
|
@ -4,7 +4,11 @@ import { cleanTarget, getCacheConfig, getCargoBins, getPackages, stateBins, stat
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
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);
|
core.exportVariable("CARGO_INCREMENTAL", 0);
|
||||||
|
|
||||||
const { paths, key, restoreKeys } = await getCacheConfig();
|
const { paths, key, restoreKeys } = await getCacheConfig();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user