aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormattprost <matt.prost@ni.com>2022-04-29 15:14:52 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2022-06-10 13:24:04 -0500
commitddd00256984bb503aa78729fb6e429e6ab8e1e8c (patch)
tree6ecc171e6915d2a640e6499ec12ba5fac7223e88
parentc090c18c54de359637d586f9ffd48efbd77183b9 (diff)
downloaduhd-ddd00256984bb503aa78729fb6e429e6ab8e1e8c.tar.gz
uhd-ddd00256984bb503aa78729fb6e429e6ab8e1e8c.tar.bz2
uhd-ddd00256984bb503aa78729fb6e429e6ab8e1e8c.zip
fixup! ci: Add fedora rpm installer build
-rw-r--r--.ci/templates/steps-build-uhd-installer-fedora-rpm.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.ci/templates/steps-build-uhd-installer-fedora-rpm.yml b/.ci/templates/steps-build-uhd-installer-fedora-rpm.yml
new file mode 100644
index 000000000..95536c130
--- /dev/null
+++ b/.ci/templates/steps-build-uhd-installer-fedora-rpm.yml
@@ -0,0 +1,32 @@
+parameters:
+- name: uhdSrcDir
+ type: string
+- name: uhdInstallerDir
+ type: string
+- name: fedoraReleaseName
+ type: string
+- name: releaseBinaries
+ type: boolean
+ default: false
+
+steps:
+- script: |
+ mkdir -p ${{ parameters.uhdInstallerDir }}
+ cd ${{ parameters.uhdInstallerDir}}
+ 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"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ $UHD_CI_CMAKE_OPTIONS \
+ -DUNDERSCORE_UHD_VERSION=ON \
+ -DENABLE_DPDK=OFF \
+ -G "Unix Makefiles" \
+ ${{ parameters.uhdSrcDir }}/host
+ displayName: cmake rpm
+
+- script: |
+ cd ${{ parameters.uhdInstallerDir}}
+ make package -j$(nproc)
+ displayName: make package rpm