nix/.forgejo/workflows/nix-build.yaml

38 lines
831 B
YAML
Raw Normal View History

2024-07-24 11:23:27 -05:00
on: [push]
jobs:
2024-07-24 13:23:51 -05:00
check:
2024-07-30 17:07:01 -05:00
runs-on: nixos-host
2024-07-24 11:23:27 -05:00
steps:
2024-07-24 13:23:51 -05:00
- name: Checkout
uses: actions/checkout@v3
# cache not needed since we now run on the host directly
# - name: Load cached nix store
# id: cache-nix-store
# uses: actions/cache/restore@v4
# with:
# path: /nix/store
# key: ${{ runner.os }}-nix-store
2024-07-24 13:23:51 -05:00
2024-08-30 11:04:17 -05:00
- name: Build server
2024-07-24 13:23:51 -05:00
run: |
2024-08-30 11:04:17 -05:00
nixos-rebuild .#beefcake
- name: Build router
run: |
nixos-rebuild .#router
- name: Build desktop
run: |
nixos-rebuild .#dragon
- name: Build laptop
run: |
nixos-rebuild .#foxtrot
2024-07-24 13:23:51 -05:00
# - name: Save nix store
# uses: actions/cache/save@v4
# with:
# path: /nix/store
# key: ${{ steps.cache-nix-store.outputs.cache-primary-key }}