From 55b73eea1913b7b0593769dd43b80477107227a8 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Mon, 29 Jun 2026 01:03:12 +0200 Subject: [PATCH] separate workflows; build and lint clangtidy --- .gitea/workflows/build.yml | 8 -------- .gitea/workflows/lint-cpp.yml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 .gitea/workflows/lint-cpp.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a2b0a2f..3a60077 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -6,8 +6,6 @@ on: jobs: build: runs-on: alpine - # Uses pre-built Docker image with all build deps. - # Rebuild via ci-image.yml workflow. container: image: git.aramjonghu.nl/aramjonghu/zshell-ci:latest @@ -20,9 +18,3 @@ jobs: - name: Build run: ninja -C build - - - name: clang-tidy - continue-on-error: true - run: | - run-clang-tidy -p build -j $(nproc) -header-filter="Plugins/.*" --quiet 2>&1 | \ - grep -v 'Suppressed\|non-user\|non-system\|unknown argument.*mno-direct' diff --git a/.gitea/workflows/lint-cpp.yml b/.gitea/workflows/lint-cpp.yml new file mode 100644 index 0000000..897aa24 --- /dev/null +++ b/.gitea/workflows/lint-cpp.yml @@ -0,0 +1,23 @@ +name: Lint (C++) + +on: + pull_request: + +jobs: + lint: + runs-on: alpine + container: + image: git.aramjonghu.nl/aramjonghu/zshell-ci:latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Configure + run: cmake -B build -G Ninja -DENABLE_MODULES=plugin -DCMAKE_BUILD_TYPE=Release + + - name: clang-tidy + continue-on-error: true + run: | + run-clang-tidy -p build -j $(nproc) -header-filter="Plugins/.*" 2>&1 | \ + grep -v 'Suppressed\|non-user\|non-system\|unknown argument.*mno-direct'