Skip to content

Commit

Permalink
update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mymindstorm committed May 23, 2020
1 parent 740e359 commit 7d624e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function run() {
};
let emsdkFolder;
let foundInCache = false;
if (emArgs.version !== "latest" && emArgs.noCache === "false") {
if (emArgs.version !== "latest" && emArgs.noCache === "false" && !emArgs.actionsCacheFolder) {
emsdkFolder = yield tc.find('emsdk', emArgs.version, os.arch());
}
const cacheKey = `${emArgs.version}-${os.arch()}`;
Expand Down Expand Up @@ -91,7 +91,7 @@ function run() {
yield exec.exec(`${emsdk} update-tags`);
}
yield exec.exec(`${emsdk} install ${emArgs.version}`);
if (emArgs.version !== "latest" && emArgs.version !== "tot" && emArgs.noCache === "false") {
if (emArgs.version !== "latest" && emArgs.version !== "tot" && emArgs.noCache === "false" && !emArgs.actionsCacheFolder) {
yield tc.cacheDir(emsdkFolder, 'emsdk', emArgs.version, os.arch());
}
}
Expand Down

0 comments on commit 7d624e9

Please sign in to comment.