aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/steps-build-uhd-ubuntu-deb.yml
diff options
context:
space:
mode:
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