Cleanup filenames and remove closure build, opting for only ISO builds

This commit is contained in:
NeilClack
2026-07-28 09:26:12 -05:00
parent 16545a77fd
commit ad37d3c5eb
+14 -13
View File
@@ -45,21 +45,25 @@ jobs:
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
nix flake update radiantwave-dev nix flake update radiantwave-dev
# This builds the system closure
- name: Build dev VM
run: |
export NIXPKGS_ALLOW_UNFREE=1
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
nix build -L --impure .#nixosConfigurations.radiantwavekiosk-dev.config.system.build.toplevel
# If the closure builds, it's valid, even if incorrect and something is wrong.
# That's why we build the ISO next, even for the dev branch, for testing
- name: Build dev ISO - name: Build dev ISO
run: | run: |
export NIXPKGS_ALLOW_UNFREE=1 export NIXPKGS_ALLOW_UNFREE=1
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
nix build -L --impure .#nixosConfigurations.dev-iso.config.system.build.isoImage nix build -L --impure .#nixosConfigurations.dev-iso.config.system.build.isoImage
cp -rL result/iso/*.iso /home/runner/radiantwave/radiantwave-kiosk-iso-dev-$(date +%Y-%m-%d_%H-%M-%S).iso
ISO_NAME="radiantwave-kiosk-iso-dev-$(date +%Y-%m-%d_%H-%M-%S).iso"
ISO_PATH="/home/runner/radiantwave/${ISO_NAME}"
cp -L result/iso/*.iso "${ISO_PATH}"
echo "ISO_NAME=${ISO_NAME}" >> "$GITHUB_ENV"
echo "ISO_PATH=${ISO_PATH}" >> "$GITHUB_ENV"
- name: Copy ISO to fileserver
run: |
scp "${ISO_PATH}" \
radiantwave-infra:/mnt/infrastructure_data/files/images/"${ISO_NAME}"
- name: Commit updated flake.lock - name: Commit updated flake.lock
run: | run: |
@@ -70,9 +74,6 @@ jobs:
git commit -m "chore: update radiantwave-dev to latest dev" || echo "Nothing to commit" git commit -m "chore: update radiantwave-dev to latest dev" || echo "Nothing to commit"
git push git push
- name: Copy ISO to fileserver
run: scp /home/runner/radiantwave/iso/* radiantwave-infra:/mnt/infrastructure_data/files/images/
- name: Notify - name: Notify
if: always() if: always()
uses: https://github.com/dawidd6/action-send-mail@v3 uses: https://github.com/dawidd6/action-send-mail@v3