3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-11-07 16:05:05 +00:00

Add BuildJet Option (#154)

This commit is contained in:
Jordan Oroshiba 2023-08-01 00:01:11 -07:00 committed by GitHub
parent 9de8f90afb
commit b00faf5858
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 5501 additions and 24 deletions

View file

@ -1,9 +1,9 @@
import * as cache from "@actions/cache";
import * as core from "@actions/core";
import * as exec from "@actions/exec";
import { cleanBin, cleanGit, cleanRegistry, cleanTargetDir } from "./cleanup";
import { CacheConfig, isCacheUpToDate } from "./config";
import { getCacheHandler } from "./utils";
process.on("uncaughtException", (e) => {
core.error(e.message);
@ -13,6 +13,8 @@ process.on("uncaughtException", (e) => {
});
async function run() {
const cache = getCacheHandler();
const save = core.getInput("save-if").toLowerCase() || "true";
if (!(cache.isFeatureAvailable() && save === "true")) {