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