Skip to content

Use cmd

Use cmd #76

Workflow file for this run

name: CMake
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
BUILD_TYPE: Debug
jobs:
build:
strategy:
matrix:
target:
- { target: Win32, vcvars: vcvars32 }
- { target: x64, vcvars: vcvars64 }
toolset: [ v143, ClangCL ]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DLIBHAT_SHARED_C_LIB=ON -DLIBHAT_TESTING=ON -A ${{matrix.target.target}} -T ${{matrix.toolset}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
shell: cmd
run: |
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\${{matrix.target.vcvars}}.bat"
ctest -C ${{env.BUILD_TYPE}} -R libhat_test_.*