nixos-config/.forgejo/workflows/cachix.yml
Charlotte Van Petegem df01f9cd93
All checks were successful
Cachix / build (elendel) (push) Successful in 1m2s
Cachix / build (kholinar) (push) Successful in 1m55s
Cachix / build (lasting-integrity) (push) Successful in 1m41s
Cachix / build (marabethia) (push) Successful in 1m8s
Cachix / build (urithiru) (push) Successful in 1m20s
git: Setup runner on marabethia
2024-11-11 01:09:22 +01:00

36 lines
1 KiB
YAML

name: Cachix
on:
push:
branches: [ main ]
env:
USER: root
jobs:
build:
runs-on: docker
strategy:
matrix:
host:
- elendel
- kholinar
- lasting-integrity
- marabethia
- urithiru
steps:
- uses: actions/checkout@v4
- run: apt update && apt install -y sudo
- uses: https://github.com/cachix/install-nix-action@v30
with:
enable_kvm: false
github_access_token: '${{ secrets.ACCESS_TOKEN_GITHUB }}'
- name: Cachix
uses: https://github.com/cachix/cachix-action@v15
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