aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-uhd-ninja.yml
diff options
context:
space:
mode:
Diffstat (limited to '.ci/templates/steps-build-uhd-ninja.yml')
-rw-r--r--.ci/templates/steps-build-uhd-ninja.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.ci/templates/steps-build-uhd-ninja.yml b/.ci/templates/steps-build-uhd-ninja.yml
new file mode 100644
index 000000000..f3ee6cfaa
--- /dev/null
+++ b/.ci/templates/steps-build-uhd-ninja.yml
@@ -0,0 +1,21 @@
+parameters:
+- name: uhdSrcDir
+ type: string
+- name: uhdBuildDir
+ type: string
+
+steps:
+- script: |
+ mkdir -p ${{ parameters.uhdBuildDir }}
+ cd ${{ parameters.uhdBuildDir }}
+ cmake -G Ninja ${{ parameters.uhdSrcDir }}/host
+ displayName: cmake ninja UHD
+- script: |
+ cd ${{ parameters.uhdBuildDir }}
+ ninja
+ displayName: ninja UHD
+- script: |
+ cd ${{ parameters.uhdBuildDir }}
+ ctest --no-compress-output --output-on-failure -T test
+ continueOnError: true
+ displayName: ctest ninja UHD