aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-uhd-make.yml
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2021-06-23 10:36:15 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2021-06-24 07:30:08 -0500
commit0896071591ddf800a0e5a7de2cd7a124bbb441e9 (patch)
treed66d372563a117ce6ec0a223615029ae6ddf1262 /.ci/templates/steps-build-uhd-make.yml
parentabcaa3f6a983c832b2ff2873d30eebd3d35f3e9a (diff)
downloaduhd-0896071591ddf800a0e5a7de2cd7a124bbb441e9.tar.gz
uhd-0896071591ddf800a0e5a7de2cd7a124bbb441e9.tar.bz2
uhd-0896071591ddf800a0e5a7de2cd7a124bbb441e9.zip
ci: Add trace builds to pipeline
Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci/templates/steps-build-uhd-make.yml')
-rw-r--r--.ci/templates/steps-build-uhd-make.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/.ci/templates/steps-build-uhd-make.yml b/.ci/templates/steps-build-uhd-make.yml
index 22cb60cc9..a3c4c7eb5 100644
--- a/.ci/templates/steps-build-uhd-make.yml
+++ b/.ci/templates/steps-build-uhd-make.yml
@@ -3,13 +3,23 @@ parameters:
type: string
- name: uhdBuildDir
type: string
+- name: uhdEnableTraceLog
+ type: boolean
+ default: false
steps:
- script: |
mkdir -p ${{ parameters.uhdBuildDir }}
cd ${{ parameters.uhdBuildDir }}
- cmake ${{ parameters.uhdSrcDir }}/host
+ if [[ "${{ parameters.uhdEnableTraceLog }}" = "True" ]]; then
+ echo "Enabling UHD Tracing"
+ export UHD_CI_CMAKE_OPTIONS="-DUHD_LOG_MIN_LEVEL=trace $UHD_CI_CMAKE_OPTIONS"
+ fi
+ cmake \
+ $UHD_CI_CMAKE_OPTIONS \
+ ${{ parameters.uhdSrcDir }}/host
displayName: cmake make UHD
+
- script: |
cd ${{ parameters.uhdBuildDir }}
make -j$(nproc)