30 lines
914 B
YAML
30 lines
914 B
YAML
name: Cachix
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
host:
|
|
- kharbranth
|
|
- kholinar
|
|
- lasting-integrity
|
|
- urithiru
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@25d64bbf11b34ad6443b4169002d4a1b163a4b02
|
|
with:
|
|
github_access_token: '${{ secrets.GITHUB_TOKEN }}'
|
|
- name: Cachix
|
|
uses: cachix/cachix-action@v12
|
|
with:
|
|
name: chvp
|
|
extraPullNames: "nix-community,accentor"
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
skipPush: true
|
|
- run: nix build -L --no-link .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel
|
|
- run: nix eval --json ".#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel.outPath" | sed 's/"\(.*\)"/\1/' | cachix push chvp
|