diff options
author | Steven Koo <steven.koo@ni.com> | 2021-07-16 09:38:16 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-07-23 09:55:39 -0500 |
commit | 0d9667e6968dd1e6edda62693ab6a858849d3a08 (patch) | |
tree | 648acd7fd9f3ed6e9527cf3d3495053772e904d9 /.ci/templates/job-uhd-build-src.yml | |
parent | a7486cbfba959d7f55a9343db66eabee94786b2f (diff) | |
download | uhd-0d9667e6968dd1e6edda62693ab6a858849d3a08.tar.gz uhd-0d9667e6968dd1e6edda62693ab6a858849d3a08.tar.bz2 uhd-0d9667e6968dd1e6edda62693ab6a858849d3a08.zip |
ci: Add custom boost version support
This adds new variables which can be used to set a a URL to a custom
Boost archive. If provided, the pipeline will download the custom Boost
archive, unpack it, build it, and provide CMake flags for UHD before
starting the UHD build itself.
This allows semi-automatic testing of new Boost versions as they are
released.
Diffstat (limited to '.ci/templates/job-uhd-build-src.yml')
-rw-r--r-- | .ci/templates/job-uhd-build-src.yml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/.ci/templates/job-uhd-build-src.yml b/.ci/templates/job-uhd-build-src.yml index a5909388a..25f8b4897 100644 --- a/.ci/templates/job-uhd-build-src.yml +++ b/.ci/templates/job-uhd-build-src.yml @@ -3,10 +3,15 @@ parameters: type: string values: - make + - make_custom_boost_version - make_trace - ninja - msbuild - ubuntu_deb +- name: 'custom_boost_version_url' + type: string + default: 'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2' + jobs: - job: build_ctest_and_upload_uhd_${{ parameters.toolset }} @@ -35,7 +40,7 @@ jobs: strategy: ${{ if eq(parameters.toolset, 'msbuild') }}: matrix: $[ variables.dockerImageMatrixWin ] - ${{ if or(eq(parameters.toolset, 'make'), eq(parameters.toolset, 'make_trace'), eq(parameters.toolset, 'ninja')) }}: + ${{ if or(eq(parameters.toolset, 'make'), eq(parameters.toolset, 'make_trace'), eq(parameters.toolset, 'ninja'), eq(parameters.toolset, 'make_custom_boost_version')) }}: matrix: $[ variables.dockerImageMatrixLin ] ${{ if eq(parameters.toolset, 'ubuntu_deb') }}: matrix: $[ variables.dockerImageMatrixUbuntuDeb ] @@ -87,6 +92,14 @@ jobs: uhdBuildDir: $(Build.BinariesDirectory)/uhddev ubuntuReleaseName: $(ubuntuReleaseName) + - ${{ if eq(parameters.toolset, 'make_custom_boost_version') }}: + - template: steps-build-uhd-make.yml + parameters: + uhdSrcDir: $(Build.SourcesDirectory) + uhdBuildDir: $(Build.BinariesDirectory)/uhddev/build + uhdCustomBoostPackage: true + uhdCustomBoostPackageURL: ${{ parameters.custom_boost_version_url }} + - task: ArchiveFiles@2 inputs: rootFolderOrFile: $(Build.BinariesDirectory) |