feat: add built-in caching via inputs (#89)

(cherry picked from commit fd6b0ad149)
This commit is contained in:
Christian Svensson
2025-05-14 18:58:13 +02:00
committed by Leo Kettmeir
parent db3496c46a
commit aa0fea114b
14 changed files with 63237 additions and 19455 deletions
+5
View File
@@ -56,6 +56,11 @@ async function main() {
core.setOutput("release-channel", version.kind);
core.info("Installation complete.");
if (core.getInput("cache") === "true") {
const { restoreCache } = await import("./cache.ts");
await restoreCache(core.getInput("cache-hash"));
}
} catch (err) {
core.setFailed((err instanceof Error) ? err : String(err));
process.exit();