diff options
author | mattprost <matt.prost@ni.com> | 2022-04-29 14:47:40 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-06-10 13:24:04 -0500 |
commit | c090c18c54de359637d586f9ffd48efbd77183b9 (patch) | |
tree | 63e052a774f5c4da21010fc90bed91c3089fa1ed /.ci/templates/job-uhd-build-installer.yml | |
parent | 72e6df51de5a766889fedcb9970dedd7fcfda6e8 (diff) | |
download | uhd-c090c18c54de359637d586f9ffd48efbd77183b9.tar.gz uhd-c090c18c54de359637d586f9ffd48efbd77183b9.tar.bz2 uhd-c090c18c54de359637d586f9ffd48efbd77183b9.zip |
ci: Add fedora rpm installer build
Builds fedora rpm files using CPack. Supports both release and
development builds.
Signed-off-by: mattprost <matt.prost@ni.com>
Diffstat (limited to '.ci/templates/job-uhd-build-installer.yml')
-rw-r--r-- | .ci/templates/job-uhd-build-installer.yml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/.ci/templates/job-uhd-build-installer.yml b/.ci/templates/job-uhd-build-installer.yml index ebe6a68bc..fd99a79de 100644 --- a/.ci/templates/job-uhd-build-installer.yml +++ b/.ci/templates/job-uhd-build-installer.yml @@ -2,16 +2,20 @@ parameters: - name: 'toolset' type: string values: + - fedora_rpm - make - msbuild - ubuntu_deb - name: 'installer' type: string values: - - rpm # make + - rpm # fedora_rpm - tar # make - nsis # msbuild - deb # ubuntu_deb +- name: releaseBinaries + type: boolean + default: false jobs: - job: build_uhd_installer_${{ parameters.toolset }} @@ -26,6 +30,7 @@ jobs: dockerImageMatrixUbuntuDeb: $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixUbuntuDeb'] ] 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'] ] pool: ${{ if eq(parameters.toolset, 'msbuild') }}: name: de-dre-lab @@ -46,6 +51,8 @@ jobs: matrix: $[ variables.dockerImageMatrixWin ] ${{ 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)' endpoint: 'Docker / Artifactory - rnd-builds-local' @@ -57,13 +64,20 @@ jobs: clean: true - download: uhd_build_docker_container + - ${{ if eq(parameters.toolset, 'fedora_rpm') }}: + - template: steps-build-uhd-installer-fedora-rpm.yml + parameters: + uhdSrcDir: $(Build.SourcesDirectory) + uhdInstallerDir: $(Build.BinariesDirectory)/uhddev-installer + fedoraReleaseName: $(fedoraReleaseName) + releaseBinaries: ${{ parameters.releaseBinaries }} - ${{ if eq(parameters.toolset, 'ubuntu_deb') }}: - template: steps-build-uhd-installer-ubuntu-deb.yml parameters: uhdSrcDir: $(Build.SourcesDirectory) uhdInstallerDir: $(Build.BinariesDirectory)/uhddev-installer ubuntuReleaseName: $(ubuntuReleaseName) - - ${{ if ne(parameters.toolset, 'ubuntu_deb') }}: + - ${{ if and(ne(parameters.toolset, 'ubuntu_deb'), ne(parameters.toolset, 'fedora_rpm')) }}: - download: current artifact: uhddev-$(buildOSName)-${{ parameters.toolset }} displayName: Download pipeline artifact uhddev-$(buildOSName)-${{ parameters.toolset }} |