ci: add nib310rio-dev install step to UHD builds

Add steps-install-nib310rio-dev.yml template that downloads
the deb or rpm artifact based on buildOSName and installs
nib310rio-dev before the build. This satisfies the nib310rio.h
build-time dependency required by UHD.

Signed-off-by: Virendra Kakade <virendra.kakade@ni.com>
This commit is contained in:
Virendra Kakade 2026-08-11 09:07:01 -05:00 committed by mkoop-ni
parent af4058bd64
commit cbcf8a46c6
3 changed files with 31 additions and 1 deletions

View File

@ -87,6 +87,9 @@ jobs:
- download: uhd_build_docker_container
- ${{ if not(or(contains(parameters.toolset, 'msbuild'), eq(parameters.toolset, 'make_homebrew_macos'))) }}:
- template: steps-install-nib310rio-dev.yml
- ${{ if eq(parameters.toolset, 'make') }}:
- template: steps-build-uhd-make.yml
parameters:

View File

@ -327,6 +327,9 @@ resources:
- pipeline: uhd_build_docker_container
source: 'uhddev Build Docker Containers'
branch: master
- pipeline: nib310rio_kernel_packages
source: 'usrp-pcie-driver pipeline'
branch: main
- pipeline: usrp-kas-pipeline
source: 'usrp-kas'
branch: scarthgap

View File

@ -0,0 +1,24 @@
steps:
- download: nib310rio_kernel_packages
artifact: nib310rio-deb-packages
displayName: Download nib310rio-dev deb
condition: and(succeeded(), contains(variables['buildOSName'], 'ubuntu'))
- download: nib310rio_kernel_packages
artifact: nib310rio-rpm-packages
displayName: Download nib310rio-dev rpm
condition: and(succeeded(), contains(variables['buildOSName'], 'fedora'))
- script: |
set -euo pipefail
if command -v dpkg >/dev/null 2>&1; then
pkg=$(find "$(Pipeline.Workspace)/nib310rio_kernel_packages/nib310rio-deb-packages" \
-type f -name 'nib310rio-dev_*_all.deb' | sort -V | tail -n 1)
sudo dpkg -i "$pkg"
else
# Search only RPMS/ to avoid picking up the source RPM from SRPMS/
pkg=$(find "$(Pipeline.Workspace)/nib310rio_kernel_packages/nib310rio-rpm-packages/RPMS" \
-type f -name 'nib310rio-dev-*.rpm' | sort -V | tail -n 1)
sudo rpm -i "$pkg"
fi
displayName: Install nib310rio-dev