mirror of https://github.com/aminya/setup-cpp
fix: use notice instead of info in some palces
This commit is contained in:
parent
682ca30420
commit
356b929a7e
|
@ -5,7 +5,7 @@ import { setupBrewPack } from "../utils/setup/setupBrewPack"
|
||||||
import { setupChocoPack } from "../utils/setup/setupChocoPack"
|
import { setupChocoPack } from "../utils/setup/setupChocoPack"
|
||||||
import { addBinExtension } from "../utils/extension/extension"
|
import { addBinExtension } from "../utils/extension/extension"
|
||||||
import { extractTar } from "../utils/setup/extract"
|
import { extractTar } from "../utils/setup/extract"
|
||||||
import { info } from "../utils/io/io"
|
import { notice } from "../utils/io/io"
|
||||||
import { setupGraphviz } from "../graphviz/graphviz"
|
import { setupGraphviz } from "../graphviz/graphviz"
|
||||||
import { getVersion } from "../default_versions"
|
import { getVersion } from "../default_versions"
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
|
||||||
// doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself
|
// doxygen on stable Ubuntu repositories is very old. So, we use get the binary from the website itself
|
||||||
installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
|
installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
info(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)
|
notice(`Failed to download doxygen binary. ${err}. Falling back to apt-get.`)
|
||||||
installationInfo = setupAptPack("doxygen", undefined)
|
installationInfo = setupAptPack("doxygen", undefined)
|
||||||
}
|
}
|
||||||
await setupGraphviz(getVersion("graphviz", undefined), "", arch)
|
await setupGraphviz(getVersion("graphviz", undefined), "", arch)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { getInput, endGroup, startGroup } from "@actions/core"
|
import { getInput, endGroup, startGroup, notice } from "@actions/core"
|
||||||
import { setupBrew } from "./brew/brew"
|
import { setupBrew } from "./brew/brew"
|
||||||
import { setupCcache } from "./ccache/ccache"
|
import { setupCcache } from "./ccache/ccache"
|
||||||
import { setupMake } from "./make/make"
|
import { setupMake } from "./make/make"
|
||||||
|
@ -217,7 +217,7 @@ export async function main(args: string[]): Promise<number> {
|
||||||
}
|
}
|
||||||
case "appleclang":
|
case "appleclang":
|
||||||
case "applellvm": {
|
case "applellvm": {
|
||||||
info("Assuming apple-clang is already installed")
|
notice("Assuming apple-clang is already installed")
|
||||||
addEnv("CC", "clang")
|
addEnv("CC", "clang")
|
||||||
addEnv("CXX", "clang++")
|
addEnv("CXX", "clang++")
|
||||||
successMessages.push(getSuccessMessage("apple-clang", undefined))
|
successMessages.push(getSuccessMessage("apple-clang", undefined))
|
||||||
|
@ -289,7 +289,7 @@ export function getCompilerInfo(maybeCompiler: string) {
|
||||||
if (semverValid(maybeVersion) !== null) {
|
if (semverValid(maybeVersion) !== null) {
|
||||||
return { compiler, version: maybeVersion }
|
return { compiler, version: maybeVersion }
|
||||||
} else {
|
} else {
|
||||||
info(`Invalid semver version ${maybeVersion} used for the compiler.`)
|
notice(`Invalid semver version ${maybeVersion} used for the compiler.`)
|
||||||
return { compiler, version: maybeVersion }
|
return { compiler, version: maybeVersion }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue