nvim.nix/.github/workflows/check.yml
jiriks74 f2df89bcf7
All checks were successful
Perform checks / formatting (push) Successful in 1m5s
Perform checks / nix_flake_check (push) Successful in 1m15s
Perform checks / nix_build (push) Successful in 2m16s
fix(ci): Remove nix cache action as it barely works
It takes 11 minutes to cache everything on a otherwise 2 minute job.
Nix doesn't even pull from it most of the time.
2024-12-19 11:17:47 +01:00

40 lines
1.2 KiB
YAML

name: Perform checks
on:
push:
pull_request:
workflow_dispatch:
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: https://github.com/DeterminateSystems/nix-installer-action@main
- name: Check Nix flake inputs
uses: https://github.com/DeterminateSystems/flake-checker-action@v4 # This action
- name: Run nix fmt
run: nix fmt -- --check .
nix_flake_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: https://github.com/DeterminateSystems/nix-installer-action@main
- name: Check Nix flake inputs
uses: https://github.com/DeterminateSystems/flake-checker-action@v4 # This action
- name: Run nix flake check
run: nix flake check
nix_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: https://github.com/DeterminateSystems/nix-installer-action@main
- name: Check Nix flake inputs
uses: https://github.com/DeterminateSystems/flake-checker-action@v4 # This action
- name: Build nvim
run: nix build .\#default