Skip to content

Commit

Permalink
Enabled Windows debug build in CI.
Browse files Browse the repository at this point in the history
PVRTexTool lib previously used STL types in exported functions, which was
incompatible with the debug CRT library. The newer API only exports C
functions, which should allow debug builds without forcing the release CRT.
  • Loading branch information
akb825 committed Jul 4, 2022
1 parent fb53134 commit dd73d93
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,9 @@ jobs:
workingDirectory: $(Build.BinariesDirectory)
- script: |
cmake .. -DCMAKE_INSTALL_PREFIX=$(dependency.location) -Dgtest_force_shared_crt=ON ^
-A $(arch) -T v141
-A $(arch) -T v141 -DCMAKE_DEBUG_POSTFIX=d
cmake --build . --config Debug
cmake --build . --config Debug --target install
cmake --build . --config Release
cmake --build . --config Release --target install
displayName: Build gtest
Expand All @@ -310,16 +312,41 @@ jobs:
workingDirectory: $(Build.BinariesDirectory)
cmakeArgs: $(cmake.commonArgs) $(cmake.args) -A $(arch) -T v141 $(Build.SourcesDirectory)
displayName: Run CMake
- task: CMake@1
inputs:
workingDirectory: $(Build.BinariesDirectory)
cmakeArgs: --build . --config Debug
displayName: Build debug
- task: CMake@1
inputs:
workingDirectory: $(Build.BinariesDirectory)
cmakeArgs: --build . --config Debug --target RUN_TESTS
displayName: Run tests debug
continueOnError: true
timeoutInMinutes: 5
- task: PublishTestResults@2
inputs:
testResultsFormat: JUnit
testResultsFiles: '*.xml'
searchFolder: $(Common.TestResultsDirectory)
failTaskOnFailedTests: true
testRunTitle: Windows-$(arch)-$(lib.type)
buildPlatform: $(arch)
buildConfiguration: $(lib.type)-Debug
displayName: Publish test results debug
- bash: rm -r *
displayName: Clear test results
workingDirectory: $(Common.TestResultsDirectory)
- task: CMake@1
inputs:
workingDirectory: $(Build.BinariesDirectory)
cmakeArgs: --build . --config Release
displayName: Build
displayName: Build release
- task: CMake@1
inputs:
workingDirectory: $(Build.BinariesDirectory)
cmakeArgs: --build . --config Release --target RUN_TESTS
displayName: Run tests
displayName: Run tests release
continueOnError: true
timeoutInMinutes: 5
- task: PublishTestResults@2
Expand All @@ -331,7 +358,7 @@ jobs:
testRunTitle: Windows-$(arch)-$(lib.type)
buildPlatform: $(arch)
buildConfiguration: $(lib.type)-Release
displayName: Publish test results
displayName: Publish test results release
- script: |
cmake --build . --config Release --target install
7z a -tzip cuttlefish-$(artifact).zip cuttlefish
Expand All @@ -342,6 +369,5 @@ jobs:
condition: ne(variables['artifact'], '')
artifact: $(artifact)
displayName: Publish artifact
# NOTE: No debug builds since PVRTexTool lib only provided for release runtime.

# vim: ts=4 sts=4 sw=4 et

0 comments on commit dd73d93

Please sign in to comment.