Skip to content

Commit

Permalink
nm ci
Browse files Browse the repository at this point in the history
  • Loading branch information
slyon committed Aug 3, 2023
1 parent 12e2d27 commit 8249583
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/network-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,33 @@ 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 dh-make openvswitch-switch linux-modules-extra-$(uname -r)
- name: Prepare test
run: |
pull-lp-source netplan.io
cp -r netplan.io-*/debian .
rm -r debian/patches/ # clear any distro patches
echo "3.0 (native)" > debian/source/format # force native build
echo "usr/lib/python3/dist-packages/netplan/*" >> debian/netplan.io.install # bindings
TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) # find latest (stable) tag
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 $(whoami) sbuild
sudo -u $(whoami) newgrp sbuild
#sudo sg sbuild
echo "\$maintainer_name='Netplan CI <ci@github>';" | tee ~/.sbuildrc
echo "1;" | tee -a ~/.sbuildrc # Perl needs this
mk-sbuild mantic
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:
Expand Down

0 comments on commit 8249583

Please sign in to comment.