diff options
Diffstat (limited to '.ci/templates/steps-build-uhd-installer-fedora-rpm.yml')
-rw-r--r-- | .ci/templates/steps-build-uhd-installer-fedora-rpm.yml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/.ci/templates/steps-build-uhd-installer-fedora-rpm.yml b/.ci/templates/steps-build-uhd-installer-fedora-rpm.yml index 95536c130..7933acf3f 100644 --- a/.ci/templates/steps-build-uhd-installer-fedora-rpm.yml +++ b/.ci/templates/steps-build-uhd-installer-fedora-rpm.yml @@ -1,6 +1,8 @@ parameters: - name: uhdSrcDir type: string +- name: uhdBuildDir + type: string - name: uhdInstallerDir type: string - name: fedoraReleaseName @@ -11,8 +13,9 @@ parameters: steps: - script: | + mkdir -p ${{ parameters.uhdBuildDir }} mkdir -p ${{ parameters.uhdInstallerDir }} - cd ${{ parameters.uhdInstallerDir}} + cd ${{ parameters.uhdBuildDir}} if [[ "${{ parameters.releaseBinaries }}" = "True" ]]; then echo "Setting UHD_RELEASE_MODE to release" export UHD_CI_CMAKE_OPTIONS="-DUHD_RELEASE_MODE=release $UHD_CI_CMAKE_OPTIONS" @@ -27,6 +30,14 @@ steps: displayName: cmake rpm - script: | - cd ${{ parameters.uhdInstallerDir}} + cd ${{ parameters.uhdBuildDir }} make package -j$(nproc) displayName: make package rpm + +- task: CopyFiles@2 + inputs: + sourceFolder: ${{ parameters.uhdBuildDir }} + contents: 'uhd*.rpm' + targetFolder: ${{ parameters.uhdInstallerDir }} + cleanTargetFolder: true + displayName: Copy rpm installer |