clang_tidy #561
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DO NOT EDIT - GENERATED FROM .github/workflows/clang_tidy.ys | |
name: clang_tidy | |
defaults: | |
run: | |
shell: bash -e -x {0} | |
'on': | |
workflow_dispatch: null | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
PROJ_PFX_TARGET: ryml- | |
PROJ_PFX_CMAKE: RYML_ | |
CMAKE_FLAGS: -DRYML_TEST_SUITE=ON | |
NUM_JOBS_BUILD: null | |
jobs: | |
clang_tidy: | |
if: always() | |
continue-on-error: false | |
runs-on: ubuntu-latest | |
container: ghcr.io/biojppm/c4core/ubuntu22.04:latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- std: 11 | |
clang: 18 | |
bt: Debug | |
bits: 64 | |
env: | |
STD: ${{matrix.std}} | |
CXX_: ${{matrix.cxx}} | |
BT: ${{matrix.bt}} | |
BITLINKS: ${{matrix.bitlinks}} | |
VG: ${{matrix.vg}} | |
SAN: ${{matrix.san}} | |
LINT: ${{matrix.lint}} | |
OS: ${{matrix.os}} | |
steps: | |
- name: checkout (action + docker) | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- run: git config --system --add safe.directory '*' | |
- name: install | |
run: c4core-install clang++-${{matrix.clang}} | |
- name: configure | |
run: | | |
cmake -S . -B build \ | |
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ | |
-DCMAKE_CXX_COMPILER=clang++-${{matrix.clang}} \ | |
-DCMAKE_C_COMPILER=clang-${{matrix.clang}} \ | |
-DCLANG_TIDY=/usr/bin/clang-tidy-${{matrix.clang}} \ | |
-DCMAKE_BUILD_TYPE=${{matrix.bt}} \ | |
-DRYML_DEV=ON \ | |
-DRYML_VALGRIND=OFF \ | |
-DRYML_BUILD_TESTS=OFF \ | |
-DRYML_BUILD_BENCHMARKS=OFF \ | |
-DRYML_DBG=OFF | |
- name: clang-tidy | |
run: cmake --build build --target ryml-clang-tidy --verbose | |
analyzer: | |
if: always() | |
continue-on-error: false | |
name: analyzer/${{matrix.bits}}bit | |
runs-on: ubuntu-latest | |
container: ghcr.io/biojppm/c4core/ubuntu${{matrix.img}}:latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- std: 11 | |
gcc: 14 | |
bits: 64 | |
bt: Debug | |
img: 22.04 | |
- std: 11 | |
gcc: 14 | |
bits: 64 | |
bt: Release | |
img: 22.04 | |
- std: 11 | |
gcc: 14 | |
bits: 32 | |
bt: Debug | |
img: 22.04 | |
- std: 11 | |
gcc: 14 | |
bits: 32 | |
bt: Release | |
img: 22.04 | |
steps: | |
- name: checkout (action + docker) | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- run: git config --system --add safe.directory '*' | |
- name: install | |
run: c4core-install g++-${{matrix.gcc}} | |
- name: configure | |
run: | | |
cmake -S . =B build \ | |
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ | |
-DCMAKE_GCC_COMPILER=g++-${{matrix.gcc}} \ | |
-DCMAKE_C_COMPILER=g-${{matrix.gcc}} \ | |
-DCMAKE_BUILD_TYPE=${{matrix.bt}} \ | |
-DRYML_DEV=ON \ | |
-DRYML_VALGRIND=OFF \ | |
-DRYML_BUILD_TESTS=ON \ | |
-DRYML_BUILD_BENCHMARKS=OFF \ | |
-DRYML_DBG=OFF \ | |
-DRYML_FANALYZER=ON | |
- name: build | |
run: cmake --build build --target ryml-test-build --parallel --verbose | |
- name: run | |
run: cmake --build build --target ryml-test-run --verbose |