aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-uhd-installer-msbuild-nsis.yml
blob: ba388e5f66edbc2ecec075014400b952fe3b3d13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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