dotfiles/.gitea/workflows/build.yaml
Cyryl Płotnicki 520813e0b1
All checks were successful
use nix / build (push) Successful in 13m40s
do not purge cache as it errors
2024-04-27 13:32:32 +01:00

31 lines
924 B
YAML

name: use nix
on: push
env:
DEV_SHELL_NAME: CI
jobs:
build:
runs-on: flakes-action
steps:
- uses: actions/checkout@v3
name: Checkout
- name: Restore and cache Nix store
uses: https://github.com/nix-community/cache-nix-action@v5
with:
# restore and save a cache using this key
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
# if there's no cache hit, restore a cache by this prefix
restore-prefixes-first-match: nix-${{ runner.os }}-
# collect garbage until Nix store size (in bytes) is at most this number
# before trying to save a new cache
gc-max-store-size-linux: 1073741824
- name: Metadata
run: |
nix flake metadata
- name: Statix
run: |
nix develop -c statix check
- name: Flake check
run: |
nix flake check