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
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:
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user