mirror of
https://github.com/moonrepo/setup-rust.git
synced 2025-04-29 21:40:01 +00:00
Polish.
This commit is contained in:
parent
293503e099
commit
81acac128f
4 changed files with 20 additions and 22 deletions
|
@ -1,9 +1,13 @@
|
|||
import os from 'os';
|
||||
import path from 'path';
|
||||
import * as cache from '@actions/cache';
|
||||
import * as core from '@actions/core';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
export const CARGO_HOME = process.env.CARGO_HOME || path.join(os.homedir(), '.cargo');
|
||||
|
||||
export const CACHE_ENABLED = core.getBooleanInput('cache') || cache.isFeatureAvailable();
|
||||
|
||||
export function getPrimaryCacheKey(): string {
|
||||
return `setup-rustcargo-${process.platform}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue