nixos-config/.forgejo/workflows/nix_build.yaml
Ingolf Wagner 88e0238d56
All checks were successful
Build all NixOS Configurations / nix build (push) Successful in 6m55s
cleanup frogejo actions
2024-07-20 22:41:25 +02:00

48 lines
1.1 KiB
YAML

name: Build all NixOS Configurations
on:
- push
jobs:
nix build:
runs-on: native
steps:
- uses: actions/checkout@v4
- name: setup ssh
run: |
cat <<EOF > .id_rsa
${{ secrets.SSH_KEY }}
EOF
chmod 600 .id_rsa
eval $(ssh-agent)
ssh-add .id_rsa
cat <<EOF > "$GITHUB_ENV"
SSH_AUTH_SOCK="$SSH_AUTH_SOCK"
SSH_AGENT_PID=$SSH_AGENT_PID
EOF
- run: nix flake archive
- run: nix flake check
- name: teardown ssh
if: always()
run: |
echo $SSH_AGENT_PID
kill $SSH_AGENT_PID
- name: nix build orbi
run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel
- name: nix build cream
run: nix build .#nixosConfigurations.cream.config.system.build.toplevel
- name: nix build cherry
run: nix build .#nixosConfigurations.cherry.config.system.build.toplevel
- name: nix build chungus
run: nix build .#nixosConfigurations.chungus.config.system.build.toplevel