Add cmocka only if tests had been enabled #600
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
name: VS17-CLANG-CI | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
ci: | |
name: windows-vs17 | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- {gen: Visual Studio 17 2022, arch: Win32} | |
- {gen: Visual Studio 17 2022, arch: x64} | |
steps: | |
- name: checkout | |
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 | |
- name: Configure | |
run: | | |
mkdir build | |
cd build && cmake -G "${{matrix.gen}}" -A ${{matrix.arch}} -T ClangCL .. | |
- name: Build | |
run: cmake --build build --config Release --parallel | |
- name: Run basic tests | |
run: | | |
cd build | |
ctest -C Release --output-on-failure | |
- name: Build Debug | |
run: cmake --build build --config Debug --parallel | |
- name: Run basic tests in Debug | |
run: | | |
cd build | |
ctest -C Debug --output-on-failure |