From c090c18c54de359637d586f9ffd48efbd77183b9 Mon Sep 17 00:00:00 2001 From: mattprost Date: Fri, 29 Apr 2022 14:47:40 -0500 Subject: ci: Add fedora rpm installer build Builds fedora rpm files using CPack. Supports both release and development builds. Signed-off-by: mattprost --- .ci/templates/job-uhd-build-installer.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to '.ci/templates/job-uhd-build-installer.yml') 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 }} -- cgit v1.2.3