-
-
Notifications
You must be signed in to change notification settings - Fork 12
Use GitHub Actions cache for installed binaries #5
base: master
Are you sure you want to change the base?
Changes from 4 commits
40cec18
981bb2e
0d51c02
9f5d8b9
57e52b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,19 +9,22 @@ export interface Input { | |
crate: string; | ||
version: string; | ||
useToolCache: boolean; | ||
useCache: boolean; | ||
primaryKey?: string; | ||
restoreKeys?: string[]; | ||
} | ||
|
||
export function get(): Input { | ||
const crate = input.getInput("crate", { required: true }); | ||
const version = input.getInput("version", { required: true }); | ||
const useToolCache = input.getInputBool("use-tool-cache") || false; | ||
const useCache = input.getInputBool("use-cache") || true; | ||
const primaryKey = input.getInput("key") || undefined; | ||
const restoreKeys = input.getInputAsArray("restore-keys") || undefined; | ||
|
||
|
||
return { | ||
crate: crate, | ||
version: version, | ||
useToolCache: useToolCache, | ||
useCache: useCache, | ||
primaryKey: primaryKey, | ||
restoreKeys: restoreKeys, | ||
}; | ||
} |
Uh oh!
There was an error while loading. Please reload this page.