mirror of
https://github.com/Swatinem/rust-cache
synced 2026-01-08 20:59:01 +00:00
Add BuildJet Option (#154)
This commit is contained in:
parent
9de8f90afb
commit
b00faf5858
10 changed files with 5501 additions and 24 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import * as cache from "@actions/cache";
|
||||
import * as core from "@actions/core";
|
||||
|
||||
import { cleanTargetDir } from "./cleanup";
|
||||
import { CacheConfig } from "./config";
|
||||
import { getCacheHandler } from "./utils";
|
||||
|
||||
process.on("uncaughtException", (e) => {
|
||||
core.error(e.message);
|
||||
|
|
@ -12,6 +12,8 @@ process.on("uncaughtException", (e) => {
|
|||
});
|
||||
|
||||
async function run() {
|
||||
const cache = getCacheHandler();
|
||||
|
||||
if (!cache.isFeatureAvailable()) {
|
||||
setCacheHitOutput(false);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue