-
Notifications
You must be signed in to change notification settings - Fork 7.7k
46 lines (41 loc) · 1.28 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
name: Lint
on:
push:
branches: [main]
pull_request: {}
jobs:
codespell:
name: Codespell
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.1
- name: Codespell
uses: codespell-project/actions-codespell@v2.1
clazy:
name: Clazy
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4.2.1
with:
submodules: "recursive"
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libopengl-dev qt6-base-private-dev qt6-declarative-dev qt6-httpserver-dev qt6-pdf-dev qt6-svg-dev qt6-tools-dev qt6-websockets-dev
- name: Configure
run: |
cmake -S gpt4all-chat -B gpt4all-chat/build \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DLLMODEL_CUDA=OFF \
-DLLMODEL_KOMPUTE=OFF
- name: Clazy
uses: nomic-ai/clazy-action@b5ed291c5dade5e5e91ed46cabcef2aaaf4e6eda
with:
checks: "level0,no-container-anti-pattern,no-qstring-arg,no-qstring-ref,no-strict-iterators,no-unused-non-trivial-variable"
install-stable: true
database: gpt4all-chat/build
path-regex: "gpt4all-(chat|backend)/src"