aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-uhd-ubuntu-deb.yml
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2021-05-10 15:45:20 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2021-05-18 15:13:37 -0500
commit01b631dc126b677bdad4698eba88481b83ad611b (patch)
treeb776c1f2b9e35dd381f3e36bb3fa2d63f36724f7 /.ci/templates/steps-build-uhd-ubuntu-deb.yml
parentd97eb69c721d9e43ad859a7b24361f95b8b20349 (diff)
downloaduhd-01b631dc126b677bdad4698eba88481b83ad611b.tar.gz
uhd-01b631dc126b677bdad4698eba88481b83ad611b.tar.bz2
uhd-01b631dc126b677bdad4698eba88481b83ad611b.zip
ci: Add deb build support for ubuntu 1804/2004
This change adds build support for Ubuntu debs in CI. This will generate the dsc file and then build the debs. These are then saved as a pipeline artifact. Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci/templates/steps-build-uhd-ubuntu-deb.yml')
-rw-r--r--.ci/templates/steps-build-uhd-ubuntu-deb.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.ci/templates/steps-build-uhd-ubuntu-deb.yml b/.ci/templates/steps-build-uhd-ubuntu-deb.yml
new file mode 100644
index 000000000..6ad6680f2
--- /dev/null
+++ b/.ci/templates/steps-build-uhd-ubuntu-deb.yml
@@ -0,0 +1,17 @@
+parameters:
+- name: uhdSrcDir
+ type: string
+- name: uhdBuildDir
+ type: string
+- name: ubuntuReleaseName
+ type: string
+
+steps:
+- script: |
+ sudo pbuilder create --debootstrapopts --variant=buildd --distribution ${{ parameters.ubuntuReleaseName }}
+ displayName: Setup pbuilder
+- script: |
+ mkdir -p ${{ parameters.uhdBuildDir }}
+ cd ${{ parameters.uhdSrcDir }}
+ python3 tools/debs/uhd_ubuntu_deb.py ${{ parameters.ubuntuReleaseName }} --buildpath ${{ parameters.uhdBuildDir }}
+ displayName: Build dsc and debs