mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-21 21:50:43 -06:00
add duration to result reporting
This commit is contained in:
parent
56a1ae6931
commit
cf24473272
1 changed files with 5 additions and 5 deletions
|
@ -304,16 +304,16 @@ proc reportResults(results: seq[(OizysDerivation, BuildResult)]) =
|
|||
fmt"| {name} | `{hash}` | " & (
|
||||
if res.successful: ":white_check_mark:"
|
||||
else: ":x:"
|
||||
) & " |"
|
||||
) & " |" & $(res.duration)
|
||||
)
|
||||
let summaryFilePath = getEnv("GITHUB_STEP_SUMMARY")
|
||||
if summaryFilePath == "": fatalQuit "no github step summary found"
|
||||
let output = open(summaryFilePath,fmAppend)
|
||||
output.writeLine("| derivation | hash | build successful |\n|---|---|---|")
|
||||
output.writeLine(rows.join("\n"))
|
||||
let output = open(summaryFilePath, fmAppend)
|
||||
output.writeLine "| derivation | hash | build | time |"
|
||||
output.writeLine "\n|---|---|---|---|"
|
||||
output.writeLine rows.join("\n")
|
||||
close output
|
||||
|
||||
|
||||
proc nixBuildWithCache*(name: string, rest:seq[string], service: string, jobs: int) =
|
||||
## build individual derivations not cached and push to cache
|
||||
if findExe(service) == "": fatalQuit fmt"is {service} installed?"
|
||||
|
|
Loading…
Reference in a new issue