ci: run lints and test compile on arch

This commit is contained in:
outfoxxed 2024-11-23 16:09:33 -08:00
parent 9b409c0e38
commit e957e88ccb
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
8 changed files with 86 additions and 28 deletions

25
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Lint
on: [push, pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Use cachix action over detsys for testing with act.
# - uses: cachix/install-nix-action@v27
- uses: DeterminateSystems/nix-installer-action@main
- uses: nicknovitski/nix-develop@v1
- name: Check formatting
run: clang-format -Werror --dry-run src/**/*.{cpp,hpp}
# required for lint
- name: Build
run: |
just configure debug -DNO_PCH=ON -DBUILD_TESTING=ON
just build
- name: Run lints
run: just lint 2>&1