diff options
author | Steven Koo <steven.koo@ni.com> | 2021-07-30 13:38:05 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-08-04 15:22:12 -0500 |
commit | 0a1be828cbc1d311eb48201ebc45dfb24ce82849 (patch) | |
tree | 9e480e42d527a37645253ea5000526dfcae7b514 /.ci/templates/steps-build-uhd-installer-ubuntu-deb.yml | |
parent | 699982eef8b29da7f94fa6d0b8216d660aa8fe40 (diff) | |
download | uhd-0a1be828cbc1d311eb48201ebc45dfb24ce82849.tar.gz uhd-0a1be828cbc1d311eb48201ebc45dfb24ce82849.tar.bz2 uhd-0a1be828cbc1d311eb48201ebc45dfb24ce82849.zip |
ci: Refactor installers and add Windows support
This commit refactors the uhd pipeline to have a new installer stage.
This also adds Windows NSIS installers to pipelines.
Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci/templates/steps-build-uhd-installer-ubuntu-deb.yml')
-rw-r--r-- | .ci/templates/steps-build-uhd-installer-ubuntu-deb.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.ci/templates/steps-build-uhd-installer-ubuntu-deb.yml b/.ci/templates/steps-build-uhd-installer-ubuntu-deb.yml new file mode 100644 index 000000000..98a3ac556 --- /dev/null +++ b/.ci/templates/steps-build-uhd-installer-ubuntu-deb.yml @@ -0,0 +1,17 @@ +parameters: +- name: uhdSrcDir + type: string +- name: uhdInstallerDir + type: string +- name: ubuntuReleaseName + type: string + +steps: +- script: | + sudo pbuilder create --debootstrapopts --variant=buildd --distribution ${{ parameters.ubuntuReleaseName }} + displayName: Setup pbuilder +- script: | + mkdir -p ${{ parameters.uhdInstallerDir }} + cd ${{ parameters.uhdSrcDir }} + python3 tools/debs/uhd_ubuntu_deb.py ${{ parameters.ubuntuReleaseName }} --buildpath ${{ parameters.uhdInstallerDir }} + displayName: Build dsc and debs |