fix(ci): defer full Nix build until release
This commit is contained in:
1 parent
c180c40b36
commit
697b7a4b80
4 files changed
+24
-12
No files matched your search
@@ -35,8 +35,8 @@ jobs:
|
||||
set -euo pipefail
|
||||
|
||||
build_log=$(mktemp)
|
||||
if nix build .#dbx-desktop --no-link --print-build-logs >"$build_log" 2>&1; then
|
||||
echo "Nix package already has the correct pnpm hash."
|
||||
if nix build .#dbx-pnpm-deps --no-link --print-build-logs >"$build_log" 2>&1; then
|
||||
echo "Nix pnpm dependencies already have the correct hash."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -50,7 +50,7 @@ jobs:
|
||||
EXPECTED_HASH="$expected_hash" perl -0pi -e \
|
||||
's/(hash = ")sha256-[^"]+(")/$1 . $ENV{EXPECTED_HASH} . $2/e' flake.nix
|
||||
|
||||
nix build .#dbx-desktop --no-link --print-build-logs
|
||||
nix build .#dbx-pnpm-deps --no-link --print-build-logs
|
||||
|
||||
if git diff --quiet -- flake.nix; then
|
||||
echo "The Nix build passed without changing flake.nix."
|
||||
|
||||
Reference in new issue
Block a user