Skip to content

Commit

Permalink
ci: Use NSIS installer from Python enabled build
Browse files Browse the repository at this point in the history
The Python examples are only included in the installer, if Python
is enabled during build. Therefore use the NSIS installer from the
Python enabled build. This makes it unnecessary to distinguish
Python/non-Python pipeline build which speeds up pipeline runs.
On the downside Python examples are installed no matter whether
they are needed or not.
  • Loading branch information
NI-LAm authored and joergho committed Jan 21, 2025
1 parent 6509d1d commit 1eb1ba2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 27 deletions.
20 changes: 1 addition & 19 deletions .ci/templates/job-uhd-build-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ parameters:
- fedora_rpm
- make
- msbuild
- msbuild_python
- ubuntu_deb
- name: 'installer'
type: string
Expand Down Expand Up @@ -39,7 +38,6 @@ jobs:
macOSBuilders: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.macOSBuilders'] ]
dockerImageMatrixSourcePackageBuilders: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixSourcePackageBuilders'] ]
dockerImageMatrixFedoraRpm: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixFedoraRpm'] ]
dockerImageMatrixWinPythonBuild: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixWinPythonBuild'] ]
pool:
name: Drivers-NIBuildFarm-RFMIBUILD
demands:
Expand All @@ -55,15 +53,13 @@ jobs:
matrix: $[ variables.dockerImageMatrixLin ]
${{ if and(eq(parameters.toolset, 'msbuild'), eq(parameters.installer, 'nsis')) }}:
matrix: $[ variables.dockerImageMatrixWin ]
${{ if and(eq(parameters.toolset, 'msbuild_python'), eq(parameters.installer, 'nsis')) }}:
matrix: $[ variables.dockerImageMatrixWinPythonBuild ]
${{ if and(eq(parameters.toolset, 'ubuntu_deb'), eq(parameters.installer, 'deb')) }}:
matrix: $[ variables.dockerImageMatrixUbuntuDeb ]
${{ if and(eq(parameters.toolset, 'fedora_rpm'), eq(parameters.installer, 'rpm')) }}:
matrix: $[ variables.dockerImageMatrixFedoraRpm ]
container:
image: '$(dockerImagePrefix)$(DockerImageName):$(dockerBuildNumber)'
${{ if or(eq(parameters.toolset, 'msbuild'), eq(parameters.toolset, 'msbuild_python')) }}:
${{ if eq(parameters.toolset, 'msbuild') }}:
options: --cpu-count 6 --memory 12G
${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/heads/UHD-')) }}:
endpoint: rnd-docker-niartifacts-ci-readonly
Expand Down Expand Up @@ -94,20 +90,6 @@ jobs:
uhdInstallerDir: $(Build.BinariesDirectory)/uhddev-installer
ubuntuReleaseName: $(ubuntuReleaseName)
- ${{ if and(eq(parameters.toolset, 'msbuild'), eq(parameters.installer, 'nsis')) }}:
- template: steps-build-uhd-installer-msbuild-nsis.yml
parameters:
uhdSrcDir: $(Build.SourcesDirectory)
uhdBuildDir: c:\uhddev\build
uhdInstallerDir: c:\uhddev-installer
uhdImageDir: c:\uhd-images
uhdVcpkgManifestDir: c:\uhd-vcpkg
uhdReleaseBinaries: ${{ parameters.releaseBinaries }}
${{ if contains(parameters.fpga_imgs_source, 'Internal') }}:
uhdImagesDownloaderExtraArgs: '-b $(InternalFileServerUrl)'
cmakeCompiler: $(cmakeCompiler)
cmakeArch: $(cmakeArch)
vsArch: $(vsArch)
vsYear: $(vsYear)
- template: steps-build-uhd-installer-msbuild-nsis.yml
parameters:
uhdSrcDir: $(Build.SourcesDirectory)
Expand Down
15 changes: 7 additions & 8 deletions .ci/templates/steps-build-uhd-installer-msbuild-nsis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,13 @@ steps:
msbuild.exe package.vcxproj -maxCpuCount -p:configuration=release
displayName: msbuild package

- ${{if not(parameters.uhdBuildPythonAPI) }}:
- task: CopyFiles@2
inputs:
sourceFolder: ${{ parameters.uhdBuildDir }}
contents: 'uhd_*.exe'
targetFolder: '$(Build.BinariesDirectory)/uhddev-installer'
cleanTargetFolder: ${{ parameters.cleanTargetFolder }}
displayName: Copy msbuild installer
- task: CopyFiles@2
inputs:
sourceFolder: ${{ parameters.uhdBuildDir }}
contents: 'uhd_*.exe'
targetFolder: '$(Build.BinariesDirectory)/uhddev-installer'
cleanTargetFolder: ${{ parameters.cleanTargetFolder }}
displayName: Copy msbuild installer
- ${{if parameters.uhdBuildPythonAPI }}:
- task: CopyFiles@2
inputs:
Expand Down

0 comments on commit 1eb1ba2

Please sign in to comment.