From 50b90118dafd68ab248a44c95c5ec925c7028185 Mon Sep 17 00:00:00 2001 From: Truxnell <19149206+truxnell@users.noreply.github.com> Date: Wed, 27 Mar 2024 08:18:31 +1100 Subject: [PATCH] fix: dry run for builds as i use garnix for cache (#22) Co-authored-by: Truxnell <9149206+truxnell@users.noreply.github.com> --- .github/workflows/diff-pr.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/diff-pr.yaml b/.github/workflows/diff-pr.yaml index 2ab5297..f34b382 100644 --- a/.github/workflows/diff-pr.yaml +++ b/.github/workflows/diff-pr.yaml @@ -62,12 +62,12 @@ jobs: run: nix-collect-garbage - 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 run: | 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 if: failure() @@ -112,10 +112,8 @@ jobs: message: | ### Report for `${{ matrix.target }}` - Version changes ${{ steps.diff.outputs.diff }} - Security vulnerability report
${{ steps.diff.outputs.diff }}