fix: use correct conan path

This commit is contained in:
2024-11-05 23:33:46 +13:00
parent 1e28f77086
commit f1b10b13b9
6 changed files with 36 additions and 4 deletions

12
dist/index.js generated vendored
View File

@@ -28374,6 +28374,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.run = run;
const core = __importStar(__nccwpck_require__(7484));
const util = __importStar(__nccwpck_require__(4527));
const download_1 = __nccwpck_require__(1531);
/**
* The main function for the action.
@@ -28386,7 +28387,7 @@ async function run() {
conanVersion = await (0, download_1.getLatestVersion)();
}
const path = await (0, download_1.download)(conanVersion);
core.addPath(path);
core.addPath(path + util.getConanBinPath());
}
catch (error) {
if (error instanceof Error)
@@ -28406,6 +28407,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getPlatformExtension = getPlatformExtension;
exports.getConanArchitecture = getConanArchitecture;
exports.getConanPlatform = getConanPlatform;
exports.getConanBinPath = getConanBinPath;
function getPlatformExtension() {
switch (process.platform) {
case 'win32':
@@ -28434,6 +28436,14 @@ function getConanPlatform() {
return 'linux';
}
}
function getConanBinPath() {
switch (process.platform) {
case 'win32':
return '';
default:
return '/bin';
}
}
/***/ }),

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long