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

38 lines
1 KiB
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:36:08 -05:00
nix shell nixpkgs#nixos-rebuild -c nixos-rebuild build --flake .#beefcake
2024-08-30 11:04:17 -05:00
- name: Build router
run: |
2024-08-30 11:36:08 -05:00
nix shell nixpkgs#nixos-rebuild -c nixos-rebuild build --flake .#router
2024-08-30 11:04:17 -05:00
- name: Build desktop
run: |
2024-08-30 11:36:08 -05:00
nix shell nixpkgs#nixos-rebuild -c nixos-rebuild build --flake .#dragon
2024-08-30 11:04:17 -05:00
- name: Build laptop
run: |
2024-08-30 11:36:08 -05:00
nix shell nixpkgs#nixos-rebuild -c nixos-rebuild build --flake .#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 }}