aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-uhd-msbuild.yml
diff options
context:
space:
mode:
Diffstat (limited to '.ci/templates/steps-build-uhd-msbuild.yml')
-rw-r--r--.ci/templates/steps-build-uhd-msbuild.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.ci/templates/steps-build-uhd-msbuild.yml b/.ci/templates/steps-build-uhd-msbuild.yml
new file mode 100644
index 000000000..d92ae88b6
--- /dev/null
+++ b/.ci/templates/steps-build-uhd-msbuild.yml
@@ -0,0 +1,33 @@
+parameters:
+- name: uhdSrcDir
+ type: string
+- name: uhdBuildDir
+ type: string
+- name: cmakeCompiler
+ type: string
+- name: cmakeArch
+ type: string
+- name: vsArch
+ type: string
+- name: vsYear
+ type: string
+
+steps:
+- script: |
+ mkdir ${{ parameters.uhdBuildDir }}
+ cd ${{ parameters.uhdBuildDir }}
+ cmake ${{ parameters.uhdSrcDir }}/host ^
+ -DVCPKG_TARGET_TRIPLET=uhd-$(vsArch)-windows-static-md ^
+ -DCMAKE_TOOLCHAIN_FILE=%VCPKG_INSTALL_DIR%/scripts/buildsystems/vcpkg.cmake ^
+ -G "$(cmakeCompiler)" -A $(cmakeArch)
+ displayName: cmake msbuild UHD
+- script: |
+ cd ${{ parameters.uhdBuildDir }}
+ call "C:\Program Files (x86)\Microsoft Visual Studio\$(vsYear)\Community\VC\Auxiliary\Build\vcvarsall.bat" $(vsArch)
+ msbuild.exe ALL_BUILD.vcxproj /p:configuration=release
+ displayName: msbuild UHD
+- script: |
+ cd ${{ parameters.uhdBuildDir }}
+ ctest --no-compress-output --output-on-failure -T test
+ continueOnError: true
+ displayName: ctest msbuild UHD