aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-gnuradio-make.yml
diff options
context:
space:
mode:
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