puzzlevision/.github/workflows/build.yml
Jo 914537921b
Some checks failed
Nix: build and cache outputs / Build (x86_64-linux) (push) Has been cancelled
Nix: check for unused code / Run deadnix (push) Has been cancelled
Nix: validate flake / Validate x86_64-linux (push) Has been cancelled
👷 Accept flake config on nix build
2025-05-26 19:00:43 +02:00

34 lines
810 B
YAML

name: "Nix: build and cache outputs"
on:
workflow_dispatch:
push:
paths:
- "**.nix"
- "**.lock"
- ".github/workflows/build.yml"
jobs:
build-flake:
name: Build (x86_64-linux)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
persist-credentials: false
- name: Install Lix
uses: ./.github/actions/install-lix
- name: Setup Attic cache
uses: ryanccn/attic-action@v0.3.2
with:
endpoint: https://cache.thevoid.cafe
cache: puzzlevision
token: ${{ secrets.ATTIC_TOKEN }}
- name: Build flake
run: nix build .#nixosConfigurations.puzzlevision.config.system.build.toplevel --accept-flake-config