Skip to content

Commit

Permalink
CI: Update DebCI to ubuntu-22.04 runners
Browse files Browse the repository at this point in the history
  • Loading branch information
slyon committed Jul 29, 2024
1 parent 65ce2c0 commit d64b597
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/debci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
jobs:
lxc-debian-testing:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -29,6 +29,7 @@ jobs:
# it's needed (will be auto-loaded) by routing.test_vrf_basic
- name: Install dependencies
run: |
sudo add-apt-repository -y -n -u -s ppa:slyon/netplan-ci
sudo apt update
sudo apt install debci lxc lxc-templates debian-archive-keyring autopkgtest ubuntu-dev-tools devscripts linux-modules-extra-$(uname -r) #openvswitch-switch
# See: https://discourse.ubuntu.com/t/containers-lxc/11526 (Apparmor section)
Expand All @@ -50,6 +51,8 @@ jobs:
cp -r netplan.io-*/debian .
rm -r debian/patches/ # clear any distro patches
sed -i 's|rm debian/tmp/lib/netplan/generate|# DELETED|' debian/rules
sed -i 's|bytecompile=-1|bytecompile=-1 -Dtesting=false|' debian/rules
sed -i 's| python3-gi,| python3-gi, python3-packaging,|' debian/tests/control # needed for the 'routing' test (nm_version)
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"
Expand Down

0 comments on commit d64b597

Please sign in to comment.