aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-uhd-make.yml
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2021-03-16 12:39:29 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-19 15:40:09 -0500
commit3b29a89b9f9a8167a595eed2988b89e2a7f2112a (patch)
tree8606482f63f69d2aee7a926b5ffc540ffc13ec28 /.ci/templates/steps-build-uhd-make.yml
parent9aafc0ace2272746d708dcac6e5daaa50b7da4c7 (diff)
downloaduhd-3b29a89b9f9a8167a595eed2988b89e2a7f2112a.tar.gz
uhd-3b29a89b9f9a8167a595eed2988b89e2a7f2112a.tar.bz2
uhd-3b29a89b9f9a8167a595eed2988b89e2a7f2112a.zip
ci: Build uhd with Pipelines
This commit adds the infrastructure to build uhd on both Linux and Windows using Pipelines. Using the docker images generated by the build docker pipeline, this runs an AzDO container job to build uhd artifacts. It then stores the artifacts to be used in later pipelines or stages. This change supports make and ninja on Linux and msbuild with VS2017/VS2019 x86/x64 on Windows. 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.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.ci/templates/steps-build-uhd-make.yml b/.ci/templates/steps-build-uhd-make.yml
new file mode 100644
index 000000000..22cb60cc9
--- /dev/null
+++ b/.ci/templates/steps-build-uhd-make.yml
@@ -0,0 +1,21 @@
+parameters:
+- name: uhdSrcDir
+ type: string
+- name: uhdBuildDir
+ type: string
+
+steps:
+- script: |
+ mkdir -p ${{ parameters.uhdBuildDir }}
+ cd ${{ parameters.uhdBuildDir }}
+ cmake ${{ parameters.uhdSrcDir }}/host
+ displayName: cmake make UHD
+- script: |
+ cd ${{ parameters.uhdBuildDir }}
+ make -j$(nproc)
+ displayName: make UHD
+- script: |
+ cd ${{ parameters.uhdBuildDir }}
+ ctest --no-compress-output --output-on-failure -T test
+ continueOnError: true
+ displayName: ctest make UHD