fix: use correct conan path
This commit is contained in:
12
dist/index.js
generated
vendored
12
dist/index.js
generated
vendored
@@ -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
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user