aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-uhd-installer-msbuild-nsis.yml
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2021-07-30 13:38:05 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2021-08-04 15:22:12 -0500
commit0a1be828cbc1d311eb48201ebc45dfb24ce82849 (patch)
tree9e480e42d527a37645253ea5000526dfcae7b514 /.ci/templates/steps-build-uhd-installer-msbuild-nsis.yml
parent699982eef8b29da7f94fa6d0b8216d660aa8fe40 (diff)
downloaduhd-0a1be828cbc1d311eb48201ebc45dfb24ce82849.tar.gz
uhd-0a1be828cbc1d311eb48201ebc45dfb24ce82849.tar.bz2
uhd-0a1be828cbc1d311eb48201ebc45dfb24ce82849.zip
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 <steven.koo@ni.com>
Diffstat (limited to '.ci/templates/steps-build-uhd-installer-msbuild-nsis.yml')
-rw-r--r--.ci/templates/steps-build-uhd-installer-msbuild-nsis.yml29
1 files changed, 29 insertions, 0 deletions
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