Skip to content

Commit 0387867

Browse files
chaudronkevintraynor
authored andcommitted
ci: Update GitHub actions runner from Ubuntu 22.04 to 24.04.
This patch upgrades the Ubuntu runner to the latest LTS version. It also adds required packages and includes the runner image in the DPDK CI signature to ensure a fresh cache build. Signed-off-by: Eelco Chaudron <[email protected]>
1 parent f58d540 commit 0387867

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

.github/workflows/build-and-test.yml

+17-9
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,21 @@ env:
77

88
jobs:
99
build-dpdk:
10+
strategy:
11+
matrix:
12+
runner: [ubuntu-24.04]
1013
env:
11-
dependencies: gcc libbpf-dev libnuma-dev libpcap-dev ninja-build pkgconf
14+
dependencies: |
15+
gcc libbpf-dev libnuma-dev libpcap-dev libsystemd-dev libxdp-dev \
16+
ninja-build pkgconf
17+
1218
CC: gcc
1319
DPDK_GIT: https://dpdk.org/git/dpdk-stable
1420
DPDK_VER: 23.11.2
1521
name: dpdk gcc
1622
outputs:
1723
dpdk_key: ${{ steps.gen_dpdk_key.outputs.key }}
18-
runs-on: ubuntu-22.04
24+
runs-on: ${{ matrix.runner }}
1925
timeout-minutes: 30
2026

2127
steps:
@@ -33,7 +39,8 @@ jobs:
3339
# This also allows us to use cache from any branch as long as version
3440
# and a way we're building DPDK stays the same.
3541
run: |
36-
cat .ci/dpdk-* > dpdk-ci-signature
42+
echo ${{ matrix.runner }} > dpdk-ci-signature
43+
cat .ci/dpdk-* >> dpdk-ci-signature
3744
grep -rwE 'DPDK_GIT|DPDK_VER' .github/ >> dpdk-ci-signature
3845
if [ "${DPDK_VER##refs/*/}" != "${DPDK_VER}" ]; then
3946
git ls-remote --heads $DPDK_GIT $DPDK_VER >> dpdk-ci-signature
@@ -80,7 +87,7 @@ jobs:
8087
dependencies: |
8188
automake libtool gcc bc libjemalloc2 libjemalloc-dev libssl-dev \
8289
llvm-dev libnuma-dev libpcap-dev selinux-policy-dev libbpf-dev \
83-
lftp libreswan
90+
libsystemd-dev libxdp-dev lftp libreswan
8491
CC: ${{ matrix.compiler }}
8592
DPDK: ${{ matrix.dpdk }}
8693
DPDK_SHARED: ${{ matrix.dpdk_shared }}
@@ -93,7 +100,7 @@ jobs:
93100
TEST_RANGE: ${{ matrix.test_range }}
94101

95102
name: linux ${{ join(matrix.*, ' ') }}
96-
runs-on: ubuntu-22.04
103+
runs-on: ubuntu-24.04
97104
timeout-minutes: 30
98105

99106
strategy:
@@ -280,12 +287,13 @@ jobs:
280287
env:
281288
dependencies: |
282289
automake bc clang-tools libbpf-dev libnuma-dev libpcap-dev \
283-
libunbound-dev libunwind-dev libssl-dev libtool llvm-dev
290+
libunbound-dev libunwind-dev libssl-dev libtool libsystemd-dev \
291+
libxdp-dev llvm-dev
284292
CC: clang
285293
DPDK: dpdk
286294
CLANG_ANALYZE: true
287295
name: clang-analyze
288-
runs-on: ubuntu-22.04
296+
runs-on: ubuntu-24.04
289297
timeout-minutes: 30
290298

291299
steps:
@@ -390,7 +398,7 @@ jobs:
390398

391399
build-oss-fuzz:
392400
name: build oss-fuzz fuzzers
393-
runs-on: ubuntu-22.04
401+
runs-on: ubuntu-24.04
394402
timeout-minutes: 30
395403

396404
steps:
@@ -458,7 +466,7 @@ jobs:
458466
DPDK: ${{ matrix.dpdk }}
459467

460468
name: linux deb ${{ matrix.dpdk }} dpdk
461-
runs-on: ubuntu-22.04
469+
runs-on: ubuntu-24.04
462470
timeout-minutes: 30
463471

464472
strategy:

0 commit comments

Comments
 (0)