setup Cpp workflow
Build (C++) / build-zshell (pull_request) Failing after 4s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 25s
Python / lint-format (pull_request) Successful in 23s
Lint & Format (C++) / lint-format (pull_request) Failing after 1m3s
Python / test (pull_request) Successful in 1m0s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m22s

This commit is contained in:
2026-06-01 21:34:46 +02:00
parent 807b2525b7
commit 12fd713fd4
2 changed files with 64 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
name: Lint & Format (C++)
on:
pull_request:
jobs:
lint-format:
runs-on: alpine
container: node:26-alpine
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install tools
run: |
apk add --no-cache \
clang-extra-tools \
git
- name: Clang Format
run: |
if find . -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) -print -quit | grep -q .; then
find . -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) -print0 | xargs -0 clang-format --dry-run --Werror
else
echo "No C++ files found"
fi