Files
cpp-project-template/.gitea/workflows/build.yaml
T
tqcq 1f24450139
cpp-template / format (ubuntu-22.04) (push) Successful in 48s
cpp-template / format (ubuntu-24.04) (push) Successful in 52s
cpp-template / build-test (asan, ubuntu-22.04) (push) Successful in 1m31s
cpp-template / build-test (asan, ubuntu-24.04) (push) Successful in 1m32s
cpp-template / build-test (debug, ubuntu-22.04) (push) Successful in 1m49s
cpp-template / build-test (debug, ubuntu-24.04) (push) Successful in 1m51s
cpp-template / build-test (fuzz, ubuntu-22.04) (push) Successful in 6m5s
cpp-template / build-test (fuzz, ubuntu-24.04) (push) Successful in 6m52s
cpp-template / build-test (release, ubuntu-22.04) (push) Successful in 1m46s
cpp-template / build-test (release, ubuntu-24.04) (push) Successful in 1m49s
cpp-template / build-test (tsan, ubuntu-22.04) (push) Failing after 1m23s
cpp-template / build-test (tsan, ubuntu-24.04) (push) Successful in 1m23s
cpp-template / clang-tidy (ubuntu-22.04) (push) Successful in 1m32s
cpp-template / clang-tidy (ubuntu-24.04) (push) Successful in 1m27s
cpp-template / install-consumer (ubuntu-22.04) (push) Successful in 1m22s
cpp-template / install-consumer (ubuntu-24.04) (push) Successful in 1m20s
cpp-template / no-network-negative (ubuntu-22.04) (push) Successful in 5m48s
cpp-template / no-network-negative (ubuntu-24.04) (push) Successful in 6m16s
cpp-template / format (ubuntu-20.04) (push) Has been cancelled
cpp-template / build-test (asan, ubuntu-20.04) (push) Has been cancelled
cpp-template / build-test (debug, ubuntu-20.04) (push) Has been cancelled
cpp-template / build-test (fuzz, ubuntu-20.04) (push) Has been cancelled
cpp-template / build-test (release, ubuntu-20.04) (push) Has been cancelled
cpp-template / build-test (tsan, ubuntu-20.04) (push) Has been cancelled
cpp-template / clang-tidy (ubuntu-20.04) (push) Has been cancelled
cpp-template / install-consumer (ubuntu-20.04) (push) Has been cancelled
cpp-template / no-network-negative (ubuntu-20.04) (push) Has been cancelled
ci: collapse preset jobs into matrix, split config/build/test steps, remove artifacts
2026-05-19 13:06:38 +08:00

75 lines
2.6 KiB
YAML

name: cpp-template
on:
push:
pull_request:
jobs:
format:
strategy:
matrix:
ubuntu_version: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
runs-on: ${{ matrix.ubuntu_version }}
steps:
- uses: actions/checkout@v4
- name: Check formatting
run: python3 scripts/format.py --check
build-test:
strategy:
matrix:
ubuntu_version: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
preset: [debug, release, asan, tsan, fuzz]
runs-on: ${{ matrix.ubuntu_version }}
steps:
- uses: actions/checkout@v4
- name: Configure (${{ matrix.preset }})
run: cmake --preset ${{ matrix.preset }}
env:
FUZZTEST_PRNG_SEED: ${{ matrix.preset == 'fuzz' && '42' || '' }}
- name: Build (${{ matrix.preset }})
run: cmake --build --preset ${{ matrix.preset }} -- VERBOSE=1
- name: Test (${{ matrix.preset }})
run: ctest --preset ${{ matrix.preset }} --output-on-failure ${{ matrix.preset == 'fuzz' && '-L fuzz_smoke' || '' }}
env:
FUZZTEST_PRNG_SEED: ${{ matrix.preset == 'fuzz' && '42' || '' }}
clang-tidy:
strategy:
matrix:
ubuntu_version: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
runs-on: ${{ matrix.ubuntu_version }}
steps:
- uses: actions/checkout@v4
- name: Configure debug preset for compile commands
run: cmake --preset debug
- name: Run clang-tidy
run: python3 scripts/clang_tidy.py --build-dir build/debug
install-consumer:
strategy:
matrix:
ubuntu_version: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
runs-on: ${{ matrix.ubuntu_version }}
steps:
- uses: actions/checkout@v4
- name: Run install-consumer QA
run: python3 scripts/dev_check.py install-consumer
no-network-negative:
strategy:
matrix:
ubuntu_version: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
runs-on: ${{ matrix.ubuntu_version }}
steps:
- uses: actions/checkout@v4
- name: Check default configure avoids network fetches
run: python3 scripts/dev_check.py no-network-default
- name: Check fuzz lane avoids network fetches
run: python3 scripts/dev_check.py no-network-fuzztest-lane
- name: Check missing archive hash diagnostics
run: python3 scripts/dev_check.py no-network-missing-archive
- name: Check vendored GoogleTest isolation
run: python3 scripts/dev_check.py gtest-isolation
- name: Check FuzzTest optional feature diagnostics
run: python3 scripts/dev_check.py fuzztest-optional-features