From 7448fc101daebf405df539be22ee38d295c57782 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Mon, 29 Jun 2026 01:15:00 +0200 Subject: [PATCH] slight revert into single workflow for missing tidy check reason --- .gitea/workflows/build.yml | 20 --------------- .gitea/workflows/cpp.yml | 48 +++++++++++++++++++++++++++++++++++ .gitea/workflows/lint-cpp.yml | 23 ----------------- 3 files changed, 48 insertions(+), 43 deletions(-) delete mode 100644 .gitea/workflows/build.yml create mode 100644 .gitea/workflows/cpp.yml delete mode 100644 .gitea/workflows/lint-cpp.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml deleted file mode 100644 index 3a60077..0000000 --- a/.gitea/workflows/build.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Build (C++) - -on: - pull_request: - -jobs: - build: - 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: Build - run: ninja -C build diff --git a/.gitea/workflows/cpp.yml b/.gitea/workflows/cpp.yml new file mode 100644 index 0000000..d6e3ca9 --- /dev/null +++ b/.gitea/workflows/cpp.yml @@ -0,0 +1,48 @@ +name: C++ + +on: + pull_request: + +jobs: + build: + 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: Build + run: ninja -C build + + - name: Upload build dir + uses: actions/upload-artifact@v4 + with: + name: build + path: build/ + + lint: + runs-on: alpine + needs: build + container: + image: git.aramjonghu.nl/aramjonghu/zshell-ci:latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Download build dir + uses: actions/download-artifact@v4 + with: + name: build + path: build/ + + - name: clang-tidy + run: | + set -o pipefail + run-clang-tidy -p build -j $(nproc) -header-filter="Plugins/.*" 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 deleted file mode 100644 index 2fda74a..0000000 --- a/.gitea/workflows/lint-cpp.yml +++ /dev/null @@ -1,23 +0,0 @@ -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 - run: | - set -o pipefail - run-clang-tidy -p build -j $(nproc) -header-filter="Plugins/.*" 2>&1 | \ - grep -v 'Suppressed\|non-user\|non-system\|unknown argument.*mno-direct'