mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 01:50:44 -06:00
change update
This commit is contained in:
parent
1bb8da0bf1
commit
a8ce1b651e
3 changed files with 14 additions and 46 deletions
54
.github/workflows/update.yml
vendored
54
.github/workflows/update.yml
vendored
|
@ -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
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/nix/store/pznxacprsq9gspmiavldyg1qfyppmqw4-nixos-system-othalan-25.05.20241118.5083ec8
|
|
@ -1 +0,0 @@
|
|||
/nix/store/qx76kywiz9v85yxck9y64878v0an9q15-nixos-system-othalan-25.05.20241118.5083ec8
|
Loading…
Reference in a new issue