osbm-nvim/.github/workflows/ci.yml
2025-03-23 00:49:47 +03:00

50 lines
1.1 KiB
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
- name: Get the init.lua path
run: |
init_path=$(grep "init=" result/bin/nixvim-print-init | awk -F'=' '{print $2}')
cat $init_path
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 .