CI/CD for build test; includes dockerbuild to avoid docker redownloading deps. avoid-c-arrays removed
Build (C++) / build (pull_request) Failing after 1s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 11s
Python / lint-format (pull_request) Successful in 17s
Python / test (pull_request) Successful in 31s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m7s

This commit is contained in:
2026-06-29 00:03:13 +02:00
parent b943f92c0c
commit 4061cc60a3
4 changed files with 82 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@ Checks: >
modernize-*,
-modernize-use-trailing-return-type,
-modernize-use-auto,
-modernize-avoid-c-arrays,
performance-*,
concurrency-mt-unsafe,
cppcoreguidelines-init-variables,
+29
View File
@@ -0,0 +1,29 @@
name: Build (C++)
on:
pull_request:
jobs:
build:
runs-on: alpine
# Uses pre-built Docker image with all build deps.
# Rebuild via ci-image.yml workflow.
container:
image: git.zach-dev.cc/zach/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: clang-tidy
continue-on-error: true
run: |
find Plugins -name '*.cpp' -o -name '*.hpp' | \
xargs clang-tidy -p build --quiet 2>&1 | \
grep -v 'Suppressed\|non-user\|non-system'
+22
View File
@@ -0,0 +1,22 @@
name: Rebuild CI Image
on:
schedule:
- cron: '0 6 * * 0'
workflow_dispatch:
jobs:
build:
runs-on: alpine
env:
IMAGE: git.zach-dev.cc/zach/zshell-ci:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build image
run: docker build -t "$IMAGE" -f ci/Dockerfile .
- name: Push image
run: docker push "$IMAGE"
+30
View File
@@ -0,0 +1,30 @@
FROM alpine:edge
# Build toolchain
RUN apk add --no-cache \
alpine-sdk \
cmake \
ninja \
clang22 \
clang22-extra-tools \
clang22-dev \
llvm22-dev \
llvm-dev \
lld \
pkgconf \
git
# Qt6
RUN apk add --no-cache \
qt6-qtbase-dev \
qt6-qtdeclarative-dev \
qt6-qtshadertools-dev \
qt6-qt5compat-dev
# Project-specific dependencies
RUN apk add --no-cache \
libqalculate-dev \
pipewire-dev \
aubio-dev \
lm-sensors-dev \
glib-dev