mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 21:19:07 +01:00
ci: Re-add build jobs for packages and workstations
This commit is contained in:
parent
6560d97335
commit
e7d9f5caf6
2 changed files with 76 additions and 17 deletions
30
.github/workflows/build-host.yml
vendored
Normal file
30
.github/workflows/build-host.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name: Build host
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
hosts:
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
CACHIX_AUTH_TOKEN:
|
||||
required: true
|
||||
jobs:
|
||||
build-host:
|
||||
name: ${{ matrix.host }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
host: ${{ fromJson(inputs.hosts) }}
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: cachix/install-nix-action@v31
|
||||
with:
|
||||
extra_nix_config: experimental-features = nix-command flakes pipe-operators
|
||||
- uses: cachix/cachix-action@v15
|
||||
with:
|
||||
name: sebastian-stork
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
useDaemon: false
|
||||
- name: Build host
|
||||
run: nix build .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel --print-build-logs
|
||||
Loading…
Add table
Add a link
Reference in a new issue