Files
nvim/.gitea/workflows/build-flake.yml
Renovate Bot d7aa106776
Some checks failed
check-commits / Check commits (pull_request) Has been cancelled
build-flake / build (pull_request) Has been cancelled
chore(deps): update cachix/install-nix-action action to v31
2025-03-10 20:45:10 +00:00

35 lines
977 B
YAML

---
name: build-flake
on:
workflow_call:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: "main"
- 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-24.05
- uses: cachix/cachix-action@v15
with:
name: palkx
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
extraPullNames: nix-community
- name: Build nix flake
run: |
while true; do sleep 1; rm -rf /homeless-shelter; done &
nix build
- name: Check nix flake
run: nix flake check --all-systems