Skip to content

Commit

Permalink
Add os to default cache key
Browse files Browse the repository at this point in the history
Fixes Error when run on ubuntu #30
  • Loading branch information
mymindstorm committed Jan 13, 2023
1 parent ed0d39a commit ab889da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function run() {
if (emArgs.version !== "latest" && emArgs.version !== "tot" && emArgs.noCache === "false" && !emArgs.actionsCacheFolder) {
emsdkFolder = yield tc.find('emsdk', emArgs.version, os.arch());
}
const cacheKey = `${emArgs.version}-${os.arch()}-master`;
const cacheKey = `${emArgs.version}-${os.platform()}-${os.arch()}-master`;
if (emArgs.actionsCacheFolder && process.env.GITHUB_WORKSPACE) {
const fullCachePath = path.join(process.env.GITHUB_WORKSPACE, emArgs.actionsCacheFolder);
try {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function run() {
emsdkFolder = await tc.find('emsdk', emArgs.version, os.arch());
}

const cacheKey = `${emArgs.version}-${os.arch()}-master`;
const cacheKey = `${emArgs.version}-${ os.platform() }-${os.arch()}-master`;
if (emArgs.actionsCacheFolder && process.env.GITHUB_WORKSPACE) {
const fullCachePath = path.join(process.env.GITHUB_WORKSPACE, emArgs.actionsCacheFolder);
try {
Expand Down

0 comments on commit ab889da

Please sign in to comment.