From 3cfecebc14c5e3ea2e1b9dd73f08281e3c7a2169 Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Mon, 24 Jan 2022 11:16:39 -0600 Subject: 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 --- .ci/templates/steps-build-gnuradio-make.yml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .ci/templates/steps-build-gnuradio-make.yml (limited to '.ci/templates/steps-build-gnuradio-make.yml') 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 -- cgit v1.2.3