SonarCloud Checking (#22) #121
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: Windows Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: windows-2022 | |
strategy: | |
matrix: | |
BUILD_TYPE: [Debug] | |
steps: | |
- name : Checkout | |
uses: actions/checkout@v2 | |
- name: Python setup | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.12.0' | |
architecture: 'x64' | |
- name: Install Conan | |
run: pip install "conan<2.0" pytest && conan --version | |
- name: Setup cmake | |
uses: jwlawson/actions-setup-cmake@v1.13 | |
with: | |
cmake-version: '3.27.x' | |
- name: Cache Conan packages | |
id: conan-cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
'C:\Users\runneradmin\.conan\*' | |
'C:\.conan\*' | |
key: ${{matrix.BUILD_TYPE}}${{ runner.os }}-conan | |
restore-keys: ${{matrix.BUILD_TYPE}}${{ runner.os }}-conan | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{matrix.BUILD_TYPE}} | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{matrix.BUILD_TYPE}} --output-on-failure |