aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-gnuradio-make.yml
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2022-01-24 11:16:39 -0600
committerAaron Rossetto <aaron.rossetto@ni.com>2022-01-25 13:57:45 -0600
commit3cfecebc14c5e3ea2e1b9dd73f08281e3c7a2169 (patch)
tree7de7a5eae74ef2a1ea0ae3a4c564d0680a207538 /.ci/templates/steps-build-gnuradio-make.yml
parent87745ecef99684fe25a8aedaa7e0c96a06e9e4f0 (diff)
downloaduhd-3cfecebc14c5e3ea2e1b9dd73f08281e3c7a2169.tar.gz
uhd-3cfecebc14c5e3ea2e1b9dd73f08281e3c7a2169.tar.bz2
uhd-3cfecebc14c5e3ea2e1b9dd73f08281e3c7a2169.zip
ci: Build gnuradio and gr-ettus
This change adds build support for gnuradio and gr-ettus. After building gnuradio and gr-ettus 3.8 against the uhddev commit, the job will upload the build artifact for gnuradio and gr-ettus for use by downstream jobs, like hardware testing. Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci/templates/steps-build-gnuradio-make.yml')
-rw-r--r--.ci/templates/steps-build-gnuradio-make.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.ci/templates/steps-build-gnuradio-make.yml b/.ci/templates/steps-build-gnuradio-make.yml
new file mode 100644
index 000000000..d8ca7cbee
--- /dev/null
+++ b/.ci/templates/steps-build-gnuradio-make.yml
@@ -0,0 +1,32 @@
+parameters:
+- name: gnuradioSrcDir
+ type: string
+- name: gnuradioBuildDir
+ type: string
+- name: gnuradioInstallPath
+ type: string
+- name: uhdInstalledArtifactPath
+ type: string
+
+steps:
+- script: |
+ mkdir -p ${{ parameters.gnuradioBuildDir }}
+ cd ${{ parameters.gnuradioBuildDir }}
+ mkdir -p ${{ parameters.gnuradioInstallPath }}
+ echo "Setting CMAKE_INSTALL_PREFIX to ${{ parameters.gnuradioInstallPath }}"
+ export UHD_CI_CMAKE_OPTIONS="-DCMAKE_INSTALL_PREFIX=${{ parameters.gnuradioInstallPath }}"
+ cmake \
+ $UHD_CI_CMAKE_OPTIONS \
+ -DCMAKE_PREFIX_PATH="${{ parameters.uhdInstalledArtifactPath }}" \
+ ${{ parameters.gnuradioSrcDir }}
+ displayName: cmake make gnuradio
+
+- script: |
+ cd ${{ parameters.gnuradioBuildDir }}
+ make -j$(nproc) -k
+ displayName: make gnuradio
+
+- script: |
+ cd ${{ parameters.gnuradioBuildDir }}
+ make install
+ displayName: Install gnuradio to gnuradioInstallPath