Improve errors and cleanup

- Silence errors and do not create error annotations, fixes #144
- Implement cleanup for new sparse registry
- Do not clean `-sys` dependencies from `registry/src`, hopefully fixes  #150
This commit is contained in:
Arpad Borsos
2023-08-02 12:15:14 +02:00
parent e97a782690
commit f6987ea139
7 changed files with 213 additions and 56 deletions

View File

@@ -2,7 +2,7 @@ import * as core from "@actions/core";
import { cleanTargetDir } from "./cleanup";
import { CacheConfig } from "./config";
import { getCacheHandler } from "./utils";
import { getCacheHandler, reportError } from "./utils";
process.on("uncaughtException", (e) => {
core.error(e.message);
@@ -62,7 +62,7 @@ async function run() {
} catch (e) {
setCacheHitOutput(false);
core.error(`${(e as any).stack}`);
reportError(e);
}
}