Skip to content

Fix clang-tidy warnings across tests, examples, and samples #1178

Fix clang-tidy warnings across tests, examples, and samples

Fix clang-tidy warnings across tests, examples, and samples #1178

Workflow file for this run

name: cmake Windows
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
build_type: [Release, Debug]
steps:
- uses: actions/checkout@v6
- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
- name: Create default profile
run: conan profile detect
- name: Install conan dependencies
run: conan install conanfile.py -s build_type=${{ matrix.build_type }} --build=missing --settings:host compiler.cppstd=17
- name: Normalize build type
shell: bash
run: echo "BUILD_TYPE_LOWERCASE=$(echo "${{ matrix.build_type }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Configure CMake
shell: bash
run: cmake --preset conan-default
- name: Build
shell: bash
run: cmake --build --preset conan-${{ env.BUILD_TYPE_LOWERCASE }}
- name: Run tests
working-directory: ${{ github.workspace }}/build
# Use ctest to run tests in separate processes, avoiding heap corruption
# issues that occur when all tests run in a single process
run: $env:PATH+=";${{ matrix.build_type }}"; ctest --output-on-failure -C ${{ matrix.build_type }}