gtest vcxproj fix 2 #3
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: Build tests GoogleTest | |
on: { workflow_dispatch, push: { paths-ignore: [ '**', '!qa/**', '!.github/workflows/build-test.yml' ] } } | |
# Configuration | |
env: | |
test_artifact_name: artifact-build-test | |
jobs: | |
build-tests-gtest: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Add MSBuild to PATH | |
uses: microsoft/setup-msbuild@v1.1 | |
- name: Build tests | |
run: | | |
MSBuild qa/UnitTest/UnitTest.sln -noLogo -verbosity:minimal -m -p:Platform=x86 -p:Configuration=Debug | |
MSBuild qa/UnitTest/UnitTest.sln -noLogo -verbosity:minimal -m -p:Platform=x86 -p:Configuration=Release | |
MSBuild qa/UnitTest/UnitTest.sln -noLogo -verbosity:minimal -m -p:Platform=x64 -p:Configuration=Debug | |
MSBuild qa/UnitTest/UnitTest.sln -noLogo -verbosity:minimal -m -p:Platform=x64 -p:Configuration=Release | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.test_artifact_name }} | |
path: | # *.pdb for code coverage | |
${{env.dirTestExecutables}}\**\*.exe | |
${{env.dirTestExecutables}}\**\*.pdb | |
!${{env.dirTestExecutables}}\**\StaticLibrary.pdb |