mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
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:
parent
af4058bd64
commit
cbcf8a46c6
@ -87,6 +87,9 @@ jobs:
|
|||||||
|
|
||||||
- download: uhd_build_docker_container
|
- 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') }}:
|
- ${{ if eq(parameters.toolset, 'make') }}:
|
||||||
- template: steps-build-uhd-make.yml
|
- template: steps-build-uhd-make.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
|||||||
@ -327,6 +327,9 @@ resources:
|
|||||||
- pipeline: uhd_build_docker_container
|
- pipeline: uhd_build_docker_container
|
||||||
source: 'uhddev Build Docker Containers'
|
source: 'uhddev Build Docker Containers'
|
||||||
branch: master
|
branch: master
|
||||||
|
- pipeline: nib310rio_kernel_packages
|
||||||
|
source: 'usrp-pcie-driver pipeline'
|
||||||
|
branch: main
|
||||||
- pipeline: usrp-kas-pipeline
|
- pipeline: usrp-kas-pipeline
|
||||||
source: 'usrp-kas'
|
source: 'usrp-kas'
|
||||||
branch: scarthgap
|
branch: scarthgap
|
||||||
|
|||||||
24
.ci/templates/steps-install-nib310rio-dev.yml
Normal file
24
.ci/templates/steps-install-nib310rio-dev.yml
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user