fix: use info instead of warning [skip ci]

This commit is contained in:
Amin Yahyaabadi 2021-12-07 13:11:52 -06:00
parent 514055a583
commit 52b4862a75
3 changed files with 4 additions and 5 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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 }
} }
} }