diff --git a/package.json b/package.json index 80bc0a7..b66783f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moonrepo/setup-rust", - "version": "0.6.0", + "version": "0.6.1", "description": "A GitHub action for setting up Rust and Cargo.", "main": "dist/index.js", "scripts": { diff --git a/src/cargo.ts b/src/cargo.ts index 55bf0c8..4d23112 100644 --- a/src/cargo.ts +++ b/src/cargo.ts @@ -14,7 +14,7 @@ export const CARGO_HOME = process.env.CARGO_HOME ?? path.join(os.homedir(), '.ca export const WORKSPACE_ROOT = process.env.GITHUB_WORKSPACE ?? process.cwd(); -export const CACHE_ENABLED = core.getBooleanInput('cache') || cache.isFeatureAvailable(); +export const CACHE_ENABLED = core.getBooleanInput('cache') && cache.isFeatureAvailable(); export async function downloadAndInstallBinstall(binDir: string) { core.info('cargo-binstall does not exist, attempting to install');