C++ / fmt (pull_request) Successful in 6s
JS/TS / fmt & lint (pull_request) Successful in 16s
Python / fmt & lint (pull_request) Successful in 48s
C++ / build & lint (pull_request) Failing after 2m33s
Python / test & nuitka build (pull_request) Failing after 1m38s
Rust / build, clippy & fmt (pull_request) Failing after 4m41s
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
name: C++
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
fmt:
|
|
runs-on: alpine
|
|
container:
|
|
image: git.aramjonghu.dev/aramjonghu/zshell-ci:latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Format check
|
|
run: |
|
|
find . \( -name '*.cpp' -o -name '*.h' -o -name '*.hpp' \) \
|
|
-not -path './build/*' \
|
|
-exec clang-format -i --style=file {} +
|
|
git diff --exit-code && echo "clang-format: passed"
|
|
|
|
build & lint:
|
|
runs-on: alpine
|
|
container:
|
|
image: git.aramjonghu.dev/aramjonghu/zshell-ci:latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Configure
|
|
run: cmake -B build -G Ninja -DENABLE_MODULES=plugin -DCMAKE_BUILD_TYPE=Release
|
|
|
|
- name: Build
|
|
run: ninja -C build
|
|
|
|
- name: clang-tidy
|
|
run: |
|
|
sed -i 's/-mno-direct-extern-access //g' build/compile_commands.json
|
|
set -o pipefail
|
|
run-clang-tidy -p build -j "$(nproc)" \
|
|
-source-filter="^$(pwd)/Plugins/" \
|
|
-header-filter=".*Plugins/.*" \
|
|
-removed-arg=-mno-direct-extern-access
|