diff options
Diffstat (limited to '.ci/templates')
-rw-r--r-- | .ci/templates/job-uhd-build-src.yml | 10 | ||||
-rw-r--r-- | .ci/templates/steps-build-uhd-make.yml | 12 |
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) |