aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates
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
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')
-rw-r--r--.ci/templates/job-uhd-build-src.yml10
-rw-r--r--.ci/templates/steps-build-uhd-make.yml12
2 files changed, 20 insertions, 2 deletions
diff --git a/.ci/templates/job-uhd-build-src.yml b/.ci/templates/job-uhd-build-src.yml
index a3c63897a..a5909388a 100644
--- a/.ci/templates/job-uhd-build-src.yml
+++ b/.ci/templates/job-uhd-build-src.yml
@@ -3,6 +3,7 @@ parameters:
type: string
values:
- make
+ - make_trace
- ninja
- msbuild
- ubuntu_deb
@@ -34,7 +35,7 @@ jobs:
strategy:
${{ if eq(parameters.toolset, 'msbuild') }}:
matrix: $[ variables.dockerImageMatrixWin ]
- ${{ if or(eq(parameters.toolset, 'make'), eq(parameters.toolset, 'ninja')) }}:
+ ${{ if or(eq(parameters.toolset, 'make'), eq(parameters.toolset, 'make_trace'), eq(parameters.toolset, 'ninja')) }}:
matrix: $[ variables.dockerImageMatrixLin ]
${{ if eq(parameters.toolset, 'ubuntu_deb') }}:
matrix: $[ variables.dockerImageMatrixUbuntuDeb ]
@@ -56,6 +57,13 @@ jobs:
uhdSrcDir: $(Build.SourcesDirectory)
uhdBuildDir: $(Build.BinariesDirectory)/uhddev/build
+ - ${{ if eq(parameters.toolset, 'make_trace') }}:
+ - template: steps-build-uhd-make.yml
+ parameters:
+ uhdSrcDir: $(Build.SourcesDirectory)
+ uhdBuildDir: $(Build.BinariesDirectory)/uhddev/build
+ uhdEnableTraceLog: true
+
- ${{ if eq(parameters.toolset, 'ninja') }}:
- template: steps-build-uhd-ninja.yml
parameters:
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)