fix iso
Build NixOS ISOs / build-iso (buildbox) (push) Successful in 5m1s

This commit is contained in:
2026-06-17 23:59:17 -04:00
parent 9f4c2df523
commit 4a07a7a8e0
3 changed files with 19 additions and 6 deletions
+17 -6
View File
@@ -48,21 +48,29 @@ jobs:
nix build --print-out-paths \
.#nixosConfigurations.${{ matrix.host }}-iso.config.system.build.isoImage \
--out-link result-iso 2>&1 | tee /tmp/nix-build.log
# The .iso file is inside the build result (result-iso is a symlink to the nix store)
# The .iso file is inside the build result at iso/*.iso
# Do NOT use `find -L` — it follows symlinks into the nix store and
# may pick up .iso files from build dependencies instead of the real ISO.
mkdir -p iso-result
ISO_SRC=$(find -L result-iso -name '*.iso' -type f | head -n 1)
ISO_SRC=$(ls result-iso/iso/*.iso 2>/dev/null | head -n 1)
if [ -z "$ISO_SRC" ]; then
echo "No ISO found — checking build output for clues..."
echo "No ISO found at result-iso/iso/*.iso — checking build output for clues..."
cat /tmp/nix-build.log
ls -la result-iso/ || true
find -L result-iso -maxdepth 3 -type f 2>/dev/null || true
ls -la result-iso/iso/ || true
exit 1
fi
# Verify it's actually a bootable ISO 9660 image before proceeding
if ! file "$ISO_SRC" | grep -q "ISO 9660"; then
echo "ERROR: $ISO_SRC is not an ISO 9660 image:"
file "$ISO_SRC"
exit 1
fi
cp "$ISO_SRC" "iso-result/"
- name: Show ${{ matrix.host }} ISO info
run: |
ISO_SRC=$(find -L iso-result -name '*.iso' -type f | head -n 1)
ISO_SRC=$(ls iso-result/*.iso 2>/dev/null | head -n 1)
if [ -z "$ISO_SRC" ]; then
echo "No ISO found under iso-result"
ls -la iso-result || true
@@ -71,6 +79,9 @@ jobs:
echo "ISO built successfully:"
ls -lh "$ISO_SRC"
echo ""
echo "File type:"
file "$ISO_SRC"
echo ""
echo "SHA256:"
sha256sum "$ISO_SRC"
@@ -78,7 +89,7 @@ jobs:
run: |
set -euo pipefail
mkdir -p iso-result/artifact
ISO_SRC=$(find -L iso-result -name '*.iso' -type f | head -n 1)
ISO_SRC=$(ls iso-result/*.iso 2>/dev/null | head -n 1)
if [ -z "$ISO_SRC" ]; then
echo "No ISO found under iso-result"
ls -la iso-result || true
+1
View File
@@ -225,6 +225,7 @@
git
nil
bun
xorriso
];
};
});
+1
View File
@@ -92,6 +92,7 @@
"modrinth"
"moonlight"
"obsidian"
"pangolin"
"scroll-reverser"
"signal"
"steam"