fix: dry run for builds as i use garnix for cache (#22)
Co-authored-by: Truxnell <9149206+truxnell@users.noreply.github.com>
This commit is contained in:
parent
1db0c9c058
commit
50b90118da
1 changed files with 2 additions and 4 deletions
6
.github/workflows/diff-pr.yaml
vendored
6
.github/workflows/diff-pr.yaml
vendored
|
@ -62,12 +62,12 @@ jobs:
|
||||||
run: nix-collect-garbage
|
run: nix-collect-garbage
|
||||||
|
|
||||||
- name: Fetch old system profile
|
- name: Fetch old system profile
|
||||||
run: nix build github:truxnell/nix-config#top.${{ matrix.target }} -v --log-format raw --profile ./profile
|
run: nix build github:truxnell/nix-config#top.${{ matrix.target }} -v --dry-run --log-format raw --profile ./profile
|
||||||
|
|
||||||
- name: Add new system to profile
|
- name: Add new system to profile
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
nix build .#top.${{ matrix.target }} --profile ./profile --show-trace --fallback -v --log-format raw > >(tee stdout.log) 2> >(tee /tmp/nix-build-err.log >&2)
|
nix build .#top.${{ matrix.target }} --dry-run --profile ./profile --show-trace --fallback -v --log-format raw > >(tee stdout.log) 2> >(tee /tmp/nix-build-err.log >&2)
|
||||||
|
|
||||||
- name: Output build failure
|
- name: Output build failure
|
||||||
if: failure()
|
if: failure()
|
||||||
|
@ -112,10 +112,8 @@ jobs:
|
||||||
message: |
|
message: |
|
||||||
### Report for `${{ matrix.target }}`
|
### Report for `${{ matrix.target }}`
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary> Version changes </summary> <br>
|
<summary> Version changes </summary> <br>
|
||||||
<pre> ${{ steps.diff.outputs.diff }} </pre>
|
<pre> ${{ steps.diff.outputs.diff }} </pre>
|
||||||
</details>
|
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary> Security vulnerability report </summary> <br>
|
<summary> Security vulnerability report </summary> <br>
|
||||||
|
|
Reference in a new issue