mirror of https://github.com/aminya/setup-cpp
fix: use info instead of warning [skip ci]
This commit is contained in:
parent
514055a583
commit
52b4862a75
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -24,7 +24,6 @@ import { InstallationInfo } from "./utils/setup/setupBin"
|
||||||
import { error, success } from "./utils/io/io"
|
import { error, success } from "./utils/io/io"
|
||||||
import { setupVcpkg } from "./vcpkg/vcpkg"
|
import { setupVcpkg } from "./vcpkg/vcpkg"
|
||||||
import { join } from "path"
|
import { join } from "path"
|
||||||
import { warning } from "@actions/core"
|
|
||||||
import { setupVCVarsall } from "./vcvarsall/vcvarsall"
|
import { setupVCVarsall } from "./vcvarsall/vcvarsall"
|
||||||
import { setupKcov } from "./kcov/kcov"
|
import { setupKcov } from "./kcov/kcov"
|
||||||
|
|
||||||
|
@ -176,7 +175,7 @@ export async function main(args: string[]): Promise<number> {
|
||||||
}
|
}
|
||||||
case "appleclang":
|
case "appleclang":
|
||||||
case "applellvm": {
|
case "applellvm": {
|
||||||
core.warning("Assuming apple-clang is already installed")
|
core.info("Assuming apple-clang is already installed")
|
||||||
core.exportVariable("CC", "clang")
|
core.exportVariable("CC", "clang")
|
||||||
core.exportVariable("CXX", "clang++")
|
core.exportVariable("CXX", "clang++")
|
||||||
break
|
break
|
||||||
|
@ -236,7 +235,7 @@ export function getCompilerInfo(maybeCompiler: string) {
|
||||||
if (semverValid(maybeVersion) !== null) {
|
if (semverValid(maybeVersion) !== null) {
|
||||||
return { compiler, version: maybeVersion }
|
return { compiler, version: maybeVersion }
|
||||||
} else {
|
} else {
|
||||||
warning(`Invalid semver version ${maybeVersion} used for the compiler.`)
|
core.info(`Invalid semver version ${maybeVersion} used for the compiler.`)
|
||||||
return { compiler, version: maybeVersion }
|
return { compiler, version: maybeVersion }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue