diff --git a/src/config.ts b/src/config.ts index 42ce7bc..c8379e4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -93,7 +93,7 @@ export class CacheConfig { // these prefixes should cover most of the compiler / rust / cargo keys const envPrefixes = ["CARGO", "CC", "CXX", "CMAKE", "RUST"]; - envPrefixes.push(...core.getInput("envVars").split(/\s+/)); + envPrefixes.push(...core.getInput("envVars").split(/\s+/).filter(Boolean)); // sort the available env vars so we have a more stable hash const keyEnvs = [];