mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-21 01:13:21 +00:00
github: add clazy to linting workflow
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
25833f4ec3
commit
9bd0644982
19
.github/workflows/codespell.yml
vendored
19
.github/workflows/codespell.yml
vendored
@ -1,19 +0,0 @@
|
|||||||
---
|
|
||||||
name: Codespell
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
codespell:
|
|
||||||
name: Check for spelling errors
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Codespell
|
|
||||||
uses: codespell-project/actions-codespell@v2
|
|
36
.github/workflows/lint.yml
vendored
Normal file
36
.github/workflows/lint.yml
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
name: Lint
|
||||||
|
|
||||||
|
on: [push, 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-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4.2.1
|
||||||
|
- 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: MinyazevR/clazy-standalone-action@v0.2.0
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user