diff --git a/.github/workflows/network-manager.yml b/.github/workflows/network-manager.yml index d02c1b013..edce34e1a 100644 --- a/.github/workflows/network-manager.yml +++ b/.github/workflows/network-manager.yml @@ -31,12 +31,7 @@ jobs: run: | sudo sed -i '/deb-src/s/^# //' /etc/apt/sources.list sudo apt update - sudo apt install autopkgtest ubuntu-dev-tools devscripts openvswitch-switch linux-modules-extra-$(uname -r) - # work around LP: #1878225 as fallback - - name: Preparing autopkgtest-build-lxd - run: | - sudo patch /usr/bin/autopkgtest-build-lxd .github/workflows/snapd.patch - autopkgtest-build-lxd ubuntu-daily:mantic + sudo apt install autopkgtest ubuntu-dev-tools devscripts sbuild openvswitch-switch linux-modules-extra-$(uname -r) - name: Prepare test run: | pull-lp-source netplan.io @@ -47,9 +42,19 @@ jobs: REV=$(git rev-parse --short HEAD) # get current git revision VER="$TAG+git~$REV" dch -v "$VER" "Autopkgtest CI" - sudo apt -y build-dep ./ - sudo apt -y install python3-cffi libpython3-dev - DEB_BUILD_OPTIONS=nocheck DPKG_GENSYMBOLS_CHECK_LEVEL=0 dpkg-buildpackage -b + sudo adduser root sbuild + sudo sg sbuild + sudo touch /root/.sbuildrc + sudo mk-sbuild mantic + sudo sbuild -dmantic --profiles=nocheck --add-depends=python3-cffi --add-depends=libpython3-dev + #sudo apt -y build-dep ./ + #sudo apt -y install python3-cffi libpython3-dev + #DEB_BUILD_OPTIONS=nocheck DPKG_GENSYMBOLS_CHECK_LEVEL=0 dpkg-buildpackage -b + # work around LP: #1878225 as fallback + - name: Preparing autopkgtest-build-lxd + run: | + sudo patch /usr/bin/autopkgtest-build-lxd .github/workflows/snapd.patch + autopkgtest-build-lxd ubuntu-daily:mantic - name: Run autopkgtest run: | # using --setup-commands temporarily to install: