Skip to content

Commit 09384fd

Browse files
committed
Update cached path: cargo-dist archives contains folders...
1 parent a49a7c3 commit 09384fd

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

dist/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30784,7 +30784,12 @@ async function main() {
3078430784

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

30787-
cachedPath = await _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__.cacheDir(extractPath, "aiken", version);
30787+
cachedPath = await _actions_tool_cache__WEBPACK_IMPORTED_MODULE_1__.cacheDir(useCargoDist
30788+
? _actions_core__WEBPACK_IMPORTED_MODULE_0__.toPlatformPath(`${extractPath}/aiken-${arch}-${platform}`)
30789+
: extractPath,
30790+
"aiken",
30791+
version
30792+
);
3078830793
}
3078930794

3079030795
_actions_core__WEBPACK_IMPORTED_MODULE_0__.addPath(cachedPath);

src/main.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ async function main() {
5252

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

55-
cachedPath = await tc.cacheDir(extractPath, "aiken", version);
55+
cachedPath = await tc.cacheDir(useCargoDist
56+
? core.toPlatformPath(`${extractPath}/aiken-${arch}-${platform}`)
57+
: extractPath,
58+
"aiken",
59+
version
60+
);
5661
}
5762

5863
core.addPath(cachedPath);

0 commit comments

Comments
 (0)