1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-12 05:16:30 +03:00

Don't print logs for successful builds.

This commit is contained in:
Ben Wolsieffer 2019-12-08 00:26:04 -05:00
parent a87ac619a0
commit 2e04b25604

View file

@ -50,7 +50,7 @@ class PackageSet {
try {
drvPath = await nix.instantiate(this.nixFile, attr, this.drvDir)
} catch (e) {
core.warning(`${attr} failed to evaluate`)
core.debug(`${attr} failed to evaluate`)
return {
status: BuildStatus.EVALUATION_FAILURE,
attr, message: e
@ -87,7 +87,7 @@ class PackageSet {
resultPath = await nix.realize(drvPath, attr, this.resultDir)
} catch (e) {
this.failedPackages.set(drvPath, attr)
core.warning(`${attr} (${drvPath}) failed to build`)
core.debug(`${attr} (${drvPath}) failed to build`)
return {
status: BuildStatus.BUILD_FAILURE,
attr, drvPath,
@ -160,13 +160,6 @@ async function run() {
.forEach(r => core.info(`${r.attr} (${r.drvPath})`));
core.endGroup()
for (let r of statusResults.get(BuildStatus.SUCCESS)!) {
await core.group(
`Sucessfully built ${r.attr} (${r.drvPath})`,
() => nix.printLog(r.drvPath!).catch(() => undefined)
)
}
for (let r of statusResults.get(BuildStatus.EVALUATION_FAILURE)!) {
core.startGroup(`Failed to evaluate ${r.attr}`)
core.warning(r.message)