32 lines
876 B
YAML
32 lines
876 B
YAML
---
|
|
name: build-flake
|
|
on:
|
|
workflow_call:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
- name: Setup sudo (required for the next step)
|
|
run: apt-get update && apt-get install -y sudo
|
|
- name: Setup nix
|
|
uses: cachix/install-nix-action@v31
|
|
with:
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
|
|
nix_path: nixpkgs=channel:nixos-25.05
|
|
- uses: cachix/cachix-action@v16
|
|
with:
|
|
name: palkx
|
|
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
|
extraPullNames: nix-community
|
|
- name: Build nix flake
|
|
run: |
|
|
nix build .
|
|
- name: Check nix flake
|
|
run: nix flake check --all-systems
|