2024-11-29 03:02:16 +01:00
|
|
|
name: Perform checks
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
formatting:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install nix
|
2024-12-13 13:12:20 +01:00
|
|
|
uses: https://github.com/DeterminateSystems/nix-installer-action@main
|
2024-11-29 03:02:16 +01:00
|
|
|
- name: Setup Action cache for nix
|
2024-12-13 13:12:20 +01:00
|
|
|
uses: https://github.com/DeterminateSystems/magic-nix-cache-action@main
|
2024-11-29 03:02:16 +01:00
|
|
|
with:
|
|
|
|
fail-mode: true
|
|
|
|
- name: Check Nix flake inputs
|
2024-12-13 13:12:20 +01:00
|
|
|
uses: https://github.com/DeterminateSystems/flake-checker-action@v4 # This action
|
2024-11-29 03:02:16 +01:00
|
|
|
- name: Run nix fmt
|
|
|
|
run: nix fmt -- --check .
|
|
|
|
|
|
|
|
nix_flake_check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install nix
|
2024-12-13 13:12:20 +01:00
|
|
|
uses: https://github.com/DeterminateSystems/nix-installer-action@main
|
2024-11-29 03:02:16 +01:00
|
|
|
- name: Setup Action cache for nix
|
2024-12-13 13:12:20 +01:00
|
|
|
uses: https://github.com/DeterminateSystems/magic-nix-cache-action@main
|
2024-11-29 03:02:16 +01:00
|
|
|
with:
|
|
|
|
fail-mode: true
|
|
|
|
- name: Check Nix flake inputs
|
2024-12-13 13:12:20 +01:00
|
|
|
uses: https://github.com/DeterminateSystems/flake-checker-action@v4 # This action
|
2024-11-29 03:02:16 +01:00
|
|
|
- name: Run nix flake check
|
|
|
|
run: nix flake check
|
|
|
|
|
|
|
|
nix_build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install nix
|
2024-12-13 13:12:20 +01:00
|
|
|
uses: https://github.com/DeterminateSystems/nix-installer-action@main
|
2024-11-29 03:57:09 +01:00
|
|
|
- name: Setup Action cache for nix
|
2024-12-13 13:12:20 +01:00
|
|
|
uses: https://github.com/DeterminateSystems/magic-nix-cache-action@main
|
2024-11-29 03:02:16 +01:00
|
|
|
with:
|
|
|
|
fail-mode: true
|
2024-11-29 03:57:09 +01:00
|
|
|
- name: Check Nix flake inputs
|
2024-12-13 13:12:20 +01:00
|
|
|
uses: https://github.com/DeterminateSystems/flake-checker-action@v4 # This action
|
2024-11-29 03:02:16 +01:00
|
|
|
- name: Build nvim
|
|
|
|
run: nix build .\#default
|