Update weekly build workflow: change schedule to run Mondays and Fridays at 09:30 UTC, remove emacs-vm build step, and adjust success message accordingly.

This commit is contained in:
Danilo Reyes 2025-09-28 16:04:40 -06:00
parent 50b20197b8
commit 354c7c38bd

View File

@ -2,8 +2,7 @@ name: Weekly NixOS Build & Cache
on: on:
schedule: schedule:
# Run every Sunday at 2 AM UTC - cron: "30 09 * * 1,5"
- cron: "0 2 * * 0"
workflow_dispatch: # Allow manual trigger workflow_dispatch: # Allow manual trigger
jobs: jobs:
@ -53,12 +52,6 @@ jobs:
echo "Building server configuration..." echo "Building server configuration..."
nix build .#nixosConfigurations.server.config.system.build.toplevel --quiet nix build .#nixosConfigurations.server.config.system.build.toplevel --quiet
- name: Build emacs-vm
if: steps.check_changes.outputs.changes == 'true'
run: |
echo "Building emacs-vm..."
nix build .#emacs-vm --quiet
- name: Push to cache - name: Push to cache
if: steps.check_changes.outputs.changes == 'true' if: steps.check_changes.outputs.changes == 'true'
run: | run: |
@ -71,7 +64,6 @@ jobs:
# Push the specific system derivations we just built # Push the specific system derivations we just built
nix build .#nixosConfigurations.workstation.config.system.build.toplevel --print-out-paths | attic push servidos:nixos --stdin nix build .#nixosConfigurations.workstation.config.system.build.toplevel --print-out-paths | attic push servidos:nixos --stdin
nix build .#nixosConfigurations.server.config.system.build.toplevel --print-out-paths | attic push servidos:nixos --stdin nix build .#nixosConfigurations.server.config.system.build.toplevel --print-out-paths | attic push servidos:nixos --stdin
nix build .#emacs-vm --print-out-paths | attic push servidos:nixos --stdin
- name: Commit updated flake.lock - name: Commit updated flake.lock
if: steps.check_changes.outputs.changes == 'true' if: steps.check_changes.outputs.changes == 'true'
@ -92,7 +84,7 @@ jobs:
if [[ "${{ steps.check_changes.outputs.changes }}" == "true" ]]; then if [[ "${{ steps.check_changes.outputs.changes }}" == "true" ]]; then
echo "✅ Weekly build completed successfully!" echo "✅ Weekly build completed successfully!"
echo "- Updated flake.lock" echo "- Updated flake.lock"
echo "- Built workstation, server, and emacs-vm configurations" echo "- Built workstation and server configurations"
echo "- Pushed builds to Atticd cache" echo "- Pushed builds to Atticd cache"
echo "- Committed changes and created release tag" echo "- Committed changes and created release tag"
else else