aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-uhd-make.yml
blob: cc0d491e82adaf9cce0731c1df0f9d64faff6fda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
parameters:
- name: uhdSrcDir
  type: string
- name: uhdBuildDir
  type: string
- name: uhdEnableTraceLog
  type: boolean
  default: false

steps:
- script: |
    mkdir -p ${{ parameters.uhdBuildDir }}
    cd ${{ parameters.uhdBuildDir }}
    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) -k
  displayName: make UHD
- script: |
    cd ${{ parameters.uhdBuildDir }}
    ctest --no-compress-output --output-on-failure -T test
  continueOnError: true
  displayName: ctest make UHD