Skip to content

Commit 415628c

Browse files
committed
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. Acked-by: Kevin Traynor <[email protected]> Signed-off-by: Eelco Chaudron <[email protected]>
1 parent cb5aebd commit 415628c

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

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

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@ 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 ninja-build pkgconf
14+
dependencies: gcc libnuma-dev libxdp-dev ninja-build pkgconf
1215
CC: gcc
1316
DPDK_GIT: https://dpdk.org/git/dpdk-stable
1417
DPDK_VER: 23.11.2
1518
name: dpdk gcc
1619
outputs:
1720
dpdk_key: ${{ steps.gen_dpdk_key.outputs.key }}
18-
runs-on: ubuntu-22.04
21+
runs-on: ${{ matrix.runner }}
1922
timeout-minutes: 30
2023

2124
steps:
@@ -33,7 +36,8 @@ jobs:
3336
# This also allows us to use cache from any branch as long as version
3437
# and a way we're building DPDK stays the same.
3538
run: |
36-
cat .ci/dpdk-* > dpdk-ci-signature
39+
echo ${{ matrix.runner }} > dpdk-ci-signature
40+
cat .ci/dpdk-* >> dpdk-ci-signature
3741
grep -rwE 'DPDK_GIT|DPDK_VER' .github/ >> dpdk-ci-signature
3842
if [ "${DPDK_VER##refs/*/}" != "${DPDK_VER}" ]; then
3943
git ls-remote --heads $DPDK_GIT $DPDK_VER >> dpdk-ci-signature
@@ -79,7 +83,7 @@ jobs:
7983
env:
8084
dependencies: |
8185
automake libtool gcc bc libjemalloc2 libjemalloc-dev libssl-dev \
82-
llvm-dev libnuma-dev selinux-policy-dev libbpf-dev lftp libreswan
86+
llvm-dev libnuma-dev selinux-policy-dev libxdp-dev lftp libreswan
8387
CC: ${{ matrix.compiler }}
8488
DPDK: ${{ matrix.dpdk }}
8589
DPDK_SHARED: ${{ matrix.dpdk_shared }}
@@ -92,7 +96,7 @@ jobs:
9296
TEST_RANGE: ${{ matrix.test_range }}
9397

9498
name: linux ${{ join(matrix.*, ' ') }}
95-
runs-on: ubuntu-22.04
99+
runs-on: ubuntu-24.04
96100
timeout-minutes: 30
97101

98102
strategy:
@@ -270,13 +274,13 @@ jobs:
270274
needs: build-dpdk
271275
env:
272276
dependencies: |
273-
automake bc clang-tools libbpf-dev libnuma-dev libunbound-dev \
274-
libunwind-dev libssl-dev libtool llvm-dev
277+
automake bc clang-tools libnuma-dev libunbound-dev libunwind-dev \
278+
libssl-dev libtool libxdp-dev llvm-dev
275279
CC: clang
276280
DPDK: dpdk
277281
CLANG_ANALYZE: true
278282
name: clang-analyze
279-
runs-on: ubuntu-22.04
283+
runs-on: ubuntu-24.04
280284
timeout-minutes: 30
281285

282286
steps:
@@ -381,7 +385,7 @@ jobs:
381385

382386
build-oss-fuzz:
383387
name: build oss-fuzz fuzzers
384-
runs-on: ubuntu-22.04
388+
runs-on: ubuntu-24.04
385389
timeout-minutes: 30
386390

387391
steps:
@@ -449,7 +453,7 @@ jobs:
449453
DPDK: ${{ matrix.dpdk }}
450454

451455
name: linux deb ${{ matrix.dpdk }} dpdk
452-
runs-on: ubuntu-22.04
456+
runs-on: ubuntu-24.04
453457
timeout-minutes: 30
454458

455459
strategy:

0 commit comments

Comments
 (0)