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