Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github: add clazy to linting workflow #3125

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
github: add clazy to linting workflow
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
cebtenzzre committed Oct 21, 2024
commit 9bd0644982cbafb391a0030f1484426f78568853
19 changes: 0 additions & 19 deletions .github/workflows/codespell.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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