WIP: setup Cpp workflow #116

Closed
AramJonghu wants to merge 9 commits from workflow-cpp into main
2 changed files with 64 additions and 0 deletions
Showing only changes of commit 12fd713fd4 - Show all commits
+37
View File
@@ -0,0 +1,37 @@
name: Build (C++)
on:
pull_request:
jobs:
build-zshell:
runs-on: alpine
container: node:26-alpine
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install tools
run: |
apk add --no-cache \
build-base \
cmake \
ninja \
pkgconf \
qt6-qtbase-dev \
qt6-qtdeclarative-dev \
qt6-qtshadertools-dev \
qt6-qttools-dev \
pipewire-dev \
libqalculate-dev \
glib-dev \
aubio-dev \
cava-dev \
git
- name: Configure
run: cmake -S . -B build -G Ninja
- name: Build ZShell
run: cmake --build build --target ZShell
+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