From d4f7a65ad6058209a4bb8e847baf11d79a8b7945 Mon Sep 17 00:00:00 2001 From: Larry Ruckman Date: Sun, 7 Jul 2024 14:54:54 -0700 Subject: [PATCH] adding C/C++ Linter to Ci workflow --- .github/workflows/surf_ci.yml | 4 ++++ pip_requirements.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/surf_ci.yml b/.github/workflows/surf_ci.yml index 17d1a225ab..1672215aca 100644 --- a/.github/workflows/surf_ci.yml +++ b/.github/workflows/surf_ci.yml @@ -49,6 +49,10 @@ jobs: python -m compileall -f python/ scripts/ tests/ flake8 --count python/ scripts/ tests/ + - name: C/C++ Linter + run: | + find . -name '*.h' -o -name '*.cpp' -o -name '*.c' | xargs cpplint + - name: VHDL Regression Testing run: | ./ghdl-build.sh > /dev/null 2>&1 diff --git a/pip_requirements.txt b/pip_requirements.txt index 2991fb423f..ee7e57fa72 100644 --- a/pip_requirements.txt +++ b/pip_requirements.txt @@ -6,3 +6,4 @@ coverage #codecov pytest pytest-cov +cpplint