From 0a1be828cbc1d311eb48201ebc45dfb24ce82849 Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Fri, 30 Jul 2021 13:38:05 -0500 Subject: ci: Refactor installers and add Windows support This commit refactors the uhd pipeline to have a new installer stage. This also adds Windows NSIS installers to pipelines. Signed-off-by: Steven Koo --- .../steps-build-uhd-installer-msbuild-nsis.yml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .ci/templates/steps-build-uhd-installer-msbuild-nsis.yml (limited to '.ci/templates/steps-build-uhd-installer-msbuild-nsis.yml') diff --git a/.ci/templates/steps-build-uhd-installer-msbuild-nsis.yml b/.ci/templates/steps-build-uhd-installer-msbuild-nsis.yml new file mode 100644 index 000000000..ba388e5f6 --- /dev/null +++ b/.ci/templates/steps-build-uhd-installer-msbuild-nsis.yml @@ -0,0 +1,29 @@ +parameters: +- name: uhdSrcDir + type: string +- name: uhdBuildDir + type: string +- name: uhdInstallerDir + type: string +- name: cmakeCompiler + type: string +- name: cmakeArch + type: string +- name: vsArch + type: string +- name: vsYear + type: string + +steps: +- script: | + cd ${{ parameters.uhdBuildDir }} + call "C:\Program Files (x86)\Microsoft Visual Studio\$(vsYear)\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" $(vsArch) + msbuild.exe package.vcxproj /p:configuration=release + displayName: msbuild package +- task: CopyFiles@2 + inputs: + sourceFolder: ${{ parameters.uhdBuildDir }} + contents: 'uhd_*.exe' + targetFolder: ${{ parameters.uhdInstallerDir }} + cleanTargetFolder: true + displayName: Copy msbuild installer -- cgit v1.2.3