Files
dotfiles/.github/workflows/build_systems.yml

26 lines
765 B
YAML

name: build_systems
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
build:
name: build-${{ matrix.system }}
runs-on: self-hosted
strategy:
matrix:
system:
- "bob"
- "jeeves"
- "rhapsody-in-green"
steps:
- uses: actions/checkout@v4
- name: Build default package
run: "nixos-rebuild build --flake ./#${{ matrix.system }}"
- name: copy to nix-cache
env:
NIX_SSHOPTS: "-p 629 -i /zfs/storage/secrets/services/github-runners/id_ed25519_github-runners -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -vv"
run: nix copy --to ssh://192.168.95.14 .#nixosConfigurations.${{ matrix.system }}.config.system.build.toplevel