Skip to content

Commit

Permalink
ci: Update GitHub actions runner from Ubuntu 22.04 to 24.04.
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: 0-day Robot <[email protected]>
  • Loading branch information
chaudron authored and Simon Horman committed Nov 5, 2024
1 parent e7694ef commit 8da3886
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ env:

jobs:
build-dpdk:
strategy:
matrix:
runner: [ubuntu-24.04]
env:
dependencies: gcc libbpf-dev libnuma-dev ninja-build pkgconf
dependencies: gcc libnuma-dev libxdp-dev ninja-build pkgconf
CC: gcc
DPDK_GIT: https://dpdk.org/git/dpdk-stable
DPDK_VER: 23.11.2
name: dpdk gcc
outputs:
dpdk_key: ${{ steps.gen_dpdk_key.outputs.key }}
runs-on: ubuntu-22.04
runs-on: ${{ matrix.runner }}
timeout-minutes: 30

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

name: linux ${{ join(matrix.*, ' ') }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 30

strategy:
Expand Down Expand Up @@ -270,13 +274,13 @@ jobs:
needs: build-dpdk
env:
dependencies: |
automake bc clang-tools libbpf-dev libnuma-dev libunbound-dev \
libunwind-dev libssl-dev libtool llvm-dev
automake bc clang-tools libnuma-dev libunbound-dev libunwind-dev \
libssl-dev libtool libxdp-dev llvm-dev
CC: clang
DPDK: dpdk
CLANG_ANALYZE: true
name: clang-analyze
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 30

steps:
Expand Down Expand Up @@ -381,7 +385,7 @@ jobs:

build-oss-fuzz:
name: build oss-fuzz fuzzers
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 30

steps:
Expand Down Expand Up @@ -449,7 +453,7 @@ jobs:
DPDK: ${{ matrix.dpdk }}

name: linux deb ${{ matrix.dpdk }} dpdk
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 30

strategy:
Expand Down

0 comments on commit 8da3886

Please sign in to comment.