mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
be noisy
This commit is contained in:
parent
2614aeb181
commit
46912c29af
3 changed files with 5 additions and 6 deletions
3
.github/workflows/update.yml
vendored
3
.github/workflows/update.yml
vendored
|
@ -46,9 +46,6 @@ jobs:
|
||||||
- name: Pre-build oizys
|
- name: Pre-build oizys
|
||||||
run: nix build .
|
run: nix build .
|
||||||
|
|
||||||
- run: >
|
|
||||||
nix build --dry-run $(nix run . -- output --host othalan --flake . )
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: >
|
run: >
|
||||||
nix run .
|
nix run .
|
||||||
|
|
|
@ -28,13 +28,16 @@ proc runCmdCapt*(cmd: string): tuple[stdout, stderr: string, exitCode: int] =
|
||||||
let errstrm = errorStream p
|
let errstrm = errorStream p
|
||||||
result.exitCode = -1
|
result.exitCode = -1
|
||||||
var line: string
|
var line: string
|
||||||
|
var cnt: int
|
||||||
while true:
|
while true:
|
||||||
|
echo cnt
|
||||||
if ostrm.readLine(line):
|
if ostrm.readLine(line):
|
||||||
result.stdout.add line & '\n'
|
result.stdout.add line & '\n'
|
||||||
if errstrm.readLine(line):
|
if errstrm.readLine(line):
|
||||||
result.stderr.add line & '\n'
|
result.stderr.add line & '\n'
|
||||||
result.exitCode = peekExitCode(p)
|
result.exitCode = peekExitCode(p)
|
||||||
if result.exitCode != -1: break
|
if result.exitCode != -1: break
|
||||||
|
inc cnt
|
||||||
|
|
||||||
# result = (
|
# result = (
|
||||||
# readAll p.outputStream,
|
# readAll p.outputStream,
|
||||||
|
|
|
@ -110,9 +110,8 @@ proc toBuildNixosConfiguration(): seq[string] =
|
||||||
var cmd = nixCommand("build")
|
var cmd = nixCommand("build")
|
||||||
cmd.addArg "--dry-run"
|
cmd.addArg "--dry-run"
|
||||||
cmd.addArgs nixosConfigAttrs()
|
cmd.addArgs nixosConfigAttrs()
|
||||||
debug "trying with ouptut"
|
# let (_, err) = runCmdCaptWithSpinner(cmd, "running dry run build for: " & getHosts().join(" "))
|
||||||
discard execCmd(cmd)
|
let (_, err, _) = runCmdCapt(cmd)
|
||||||
let (_, err) = runCmdCaptWithSpinner(cmd, "running dry run build for: " & getHosts().join(" "))
|
|
||||||
let output = parseDryRunOutput err
|
let output = parseDryRunOutput err
|
||||||
return output.toBuild.mapIt(it.storePath)
|
return output.toBuild.mapIt(it.storePath)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue