aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-gr-ettus-make.yml
diff options
context:
space:
mode:
Diffstat (limited to '.ci/templates/steps-build-gr-ettus-make.yml')
-rw-r--r--.ci/templates/steps-build-gr-ettus-make.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.ci/templates/steps-build-gr-ettus-make.yml b/.ci/templates/steps-build-gr-ettus-make.yml
new file mode 100644
index 000000000..a988eb23d
--- /dev/null
+++ b/.ci/templates/steps-build-gr-ettus-make.yml
@@ -0,0 +1,34 @@
+parameters:
+- name: grettusSrcDir
+ type: string
+- name: grettusBuildDir
+ type: string
+- name: grettusInstallPath
+ type: string
+- name: uhdInstalledArtifactPath
+ type: string
+- name: gnuradioInstalledArtifactPath
+ type: string
+
+steps:
+- script: |
+ mkdir -p ${{ parameters.grettusBuildDir }}
+ cd ${{ parameters.grettusBuildDir }}
+ mkdir -p ${{ parameters.grettusInstallPath }}
+ echo "Setting CMAKE_INSTALL_PREFIX to ${{ parameters.grettusInstallPath }}"
+ export UHD_CI_CMAKE_OPTIONS="-DCMAKE_INSTALL_PREFIX=${{ parameters.grettusInstallPath }}"
+ cmake \
+ $UHD_CI_CMAKE_OPTIONS \
+ -DCMAKE_PREFIX_PATH="${{ parameters.uhdInstalledArtifactPath }};${{ parameters.gnuradioInstalledArtifactPath }}" \
+ ${{ parameters.grettusSrcDir }}
+ displayName: cmake make gr-ettus
+
+- script: |
+ cd ${{ parameters.grettusBuildDir }}
+ make -j$(nproc) -k
+ displayName: make gr-ettus
+
+- script: |
+ cd ${{ parameters.grettusBuildDir }}
+ make install
+ displayName: Install gr-ettus to grettusInstallPath