fix: use correct conan path
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import * as core from '@actions/core'
|
||||
import * as util from './util'
|
||||
import { download, getLatestVersion } from './download'
|
||||
|
||||
/**
|
||||
@@ -14,7 +15,7 @@ export async function run(): Promise<void> {
|
||||
}
|
||||
|
||||
const path = await download(conanVersion)
|
||||
core.addPath(path)
|
||||
core.addPath(path + util.getConanBinPath())
|
||||
} catch (error) {
|
||||
if (error instanceof Error) core.setFailed(error.message)
|
||||
}
|
||||
|
||||
@@ -28,3 +28,12 @@ export function getConanPlatform(): string {
|
||||
return 'linux'
|
||||
}
|
||||
}
|
||||
|
||||
export function getConanBinPath(): string {
|
||||
switch (process.platform) {
|
||||
case 'win32':
|
||||
return ''
|
||||
default:
|
||||
return '/bin'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user