Skip to content

Commit

Permalink
Update cached path: cargo-dist archives contains folders...
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed May 24, 2024
1 parent a49a7c3 commit 09384fd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30784,7 +30784,12 @@ async function main() {

const extractPath = await _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__.extractTar(tarPath, undefined, ["xzC"]);

cachedPath = await _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__.cacheDir(extractPath, "aiken", version);
cachedPath = await _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__.cacheDir(useCargoDist
? _actions_core__WEBPACK_IMPORTED_MODULE_0__.toPlatformPath(`${extractPath}/aiken-${arch}-${platform}`)
: extractPath,
"aiken",
version
);
}

_actions_core__WEBPACK_IMPORTED_MODULE_0__.addPath(cachedPath);
Expand Down
7 changes: 6 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ async function main() {

const extractPath = await tc.extractTar(tarPath, undefined, ["xzC"]);

cachedPath = await tc.cacheDir(extractPath, "aiken", version);
cachedPath = await tc.cacheDir(useCargoDist
? core.toPlatformPath(`${extractPath}/aiken-${arch}-${platform}`)
: extractPath,
"aiken",
version
);
}

core.addPath(cachedPath);
Expand Down

0 comments on commit 09384fd

Please sign in to comment.