mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-06 19:14:57 +11:00
31 lines
860 B
YAML
31 lines
860 B
YAML
name: Lint
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
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: DeterminateSystems/magic-nix-cache-action@main
|
|
with:
|
|
use-flakehub: false
|
|
- 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: LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 just lint-ci
|