osbm-nvim/.github/workflows/nix.yml
2024-12-21 13:22:37 +03:00

45 lines
979 B
YAML

name: Nix
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install nix
uses: cachix/install-nix-action@v16
# TODO: add a binary cache
# - uses: cachix/cachix-action@v10
# with:
# name: YOURCACHE
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Check the flake
run: nix flake check --accept-flake-config
- name: Pre-build the system configuration
run: nix build --accept-flake-config .
- name: Print out the size of /nix/store
run: du -sh /nix/store
check-formatting:
runs-on: ubuntu-24.04
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install nix
uses: cachix/install-nix-action@v16
- name: Check formatting (dont update)
run: nix shell nixpkgs#alejandra -c alejandra -c .