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:
parent
a87ac619a0
commit
2e04b25604
1 changed files with 2 additions and 9 deletions
11
.github/actions/nix-ros-build-action/src/main.ts
vendored
11
.github/actions/nix-ros-build-action/src/main.ts
vendored
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue