change update

This commit is contained in:
Daylin Morgan 2024-11-19 13:18:33 -06:00
parent 1bb8da0bf1
commit a8ce1b651e
Signed by: daylin
GPG key ID: 950D13E9719334AD
3 changed files with 14 additions and 46 deletions

View file

@ -89,61 +89,31 @@ jobs:
- name: Pre-build oizys - name: Pre-build oizys
run: nix build . run: nix build .
# TODO: make this all oizys ci update --host - name: Build Current and Updated Systems
# to build / then build then write paths
- name: Build
run: > run: >
nix run . nix run .
-- --
build ci update
"$(nix run . -- output --host,=othalan,algiz,mannaz,naudiz --flake .)" --host,=othalan,algiz,mannaz,naudiz
--flake . --flake .
--debug --debug
-- --
--keep-going --quiet
--no-link
- run: git show origin/flake-lock:flake.lock > updated.lock
- name: Pre-build oizys
run: nix build . --reference-lock-file updated.lock
- name: Build Updated
run: >
nix run .
--
build
"$(nix run . -- output --host,=othalan,algiz,mannaz,naudiz --flake .)"
--flake .
--debug
--
--keep-going
--no-link
--reference-lock-file updated.lock
- run: | - run: |
for host in othalan algiz mannaz naudiz; do for host in othalan algiz mannaz naudiz; do
for rev in current updated; do echo "# System Diff" >> $GITHUB_STEP_SUMMARY
args="\"$(nix run . -- output --host $host)\" --out-link \"${host}-${rev}\"" nix run "nixpkgs#nvd" -- --color always diff ./$host-current ./$host-updated >> $host-summary.md
[[ "$rev" == "updated" ]] && args="$args --reference-lock-file updated.lock" printf '```\n%s\n```\n' "$(nix run "nixpkgs#nvd" -- diff ./$host-current ./$host-updated)" >> $GITHUB_STEP_SUMMARY
nix build $args
done
done done
- run: ls
# - run: |
# echo "# System Diff" >> $GITHUB_STEP_SUMMARY
# nix run "nixpkgs#nvd" -- --color always diff ./current ./updated >> summary.md
# printf '```\n%s\n```\n' "$(nix run "nixpkgs#nvd" -- diff ./current ./updated)" >> $GITHUB_STEP_SUMMARY
#
- run: df -h - run: df -h
# - uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
# with: with:
# name: ${{ matrix.host }}-summary name: summary
# path: summary.md path: '*-summary.md'
#
build-full: build-full:
needs: build-minimal needs: build-minimal
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -1 +0,0 @@
/nix/store/pznxacprsq9gspmiavldyg1qfyppmqw4-nixos-system-othalan-25.05.20241118.5083ec8

View file

@ -1 +0,0 @@
/nix/store/qx76kywiz9v85yxck9y64878v0an9q15-nixos-system-othalan-25.05.20241118.5083ec8