]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
ci: add ubuntu-26.04, update runners
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 3 Jul 2026 20:43:11 +0000 (21:43 +0100)
committerLucas De Marchi <ldemarchi@kernel.org>
Mon, 6 Jul 2026 16:10:05 +0000 (13:10 -0300)
Ubuntu 26.04 is the first version to include mbedtls v3. Add it to the
build and update the runners to it.

Getting us a step closer to having a) formal code coverage for that path
and b) knowing what fixes we'll need once the runner is out of
"preview".

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/448
Signed-off-by: Lucas De Marchi <ldemarchi@kernel.org>
.github/actions/setup-os/setup-ubuntu.sh
.github/workflows/clang-format.yml
.github/workflows/codeql.yml
.github/workflows/codespell.yml
.github/workflows/coverage.yml
.github/workflows/docs.yml
.github/workflows/main.yml

index 1e98beb97e92b7bc5f880ce3dc476ff53dd4b9f5..435db7090d3e266e953c3a1c535c862b4e9125e6 100755 (executable)
@@ -6,6 +6,14 @@
 
 export DEBIAN_FRONTEND=noninteractive
 export TZ=Etc/UTC
+
+. /etc/os-release
+
+mbedtls_pkgs=()
+if [[ "$VERSION_CODENAME" == "resolute" ]]; then
+    mbedtls_pkgs=("libmbedtls-dev")
+fi
+
 apt-get update
 apt-get install --yes \
     bash \
@@ -21,6 +29,7 @@ apt-get install --yes \
     libzstd-dev \
     linux-headers-generic \
     meson \
+    "${mbedtls_pkgs[@]}" \
     scdoc \
     zlib1g-dev \
     zstd
index c43d73de80765d085360c8f2549b14a63ef73167..7de471b43c872d099b45063f9fd76f6be9eac9b8 100644 (file)
@@ -9,7 +9,7 @@ permissions:
 
 jobs:
   stylecheck:
-    runs-on: ubuntu-24.04
+    runs-on: ubuntu-26.04
     steps:
       - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
       - run: git fetch --depth=1 origin ${{ github.event.pull_request.base.sha }}
index 5704ffa8fd56bf2fb1d7daa8638f54db09844396..89ad61229a8d20a746d759c05ae3334783bbed77 100644 (file)
@@ -22,7 +22,7 @@ permissions:
 jobs:
   analyze:
     name: Analyze
-    runs-on: ubuntu-24.04
+    runs-on: ubuntu-26.04
     permissions:
       actions: read
       security-events: write
@@ -31,8 +31,8 @@ jobs:
       fail-fast: false
       matrix:
         include:
-          - container: 'ubuntu:24.04'
-            meson_setup: '-D b_sanitize=none -D build-tests=false -Dmbedtls=disabled'
+          - container: 'ubuntu:26.04'
+            meson_setup: '-D b_sanitize=none -D build-tests=false'
 
     container:
       image: ${{ matrix.container }}
index f39904ff0d45544705ddfa90b2be3ec5af1b9430..40c3601b7733fe610b4c84772a39f5cb6518760e 100644 (file)
@@ -15,7 +15,7 @@ permissions:
 
 jobs:
   spellcheck:
-    runs-on: ubuntu-24.04
+    runs-on: ubuntu-26.04
     steps:
       - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
       - uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2
index 9c6c93a63e3cd59073ef3126086323ece51db3c6..334d3c143c2defa19180efa9b30444550d5c0627 100644 (file)
@@ -22,13 +22,13 @@ env:
 jobs:
   analyze:
     name: Analyze
-    runs-on: ubuntu-24.04
+    runs-on: ubuntu-26.04
 
     strategy:
       fail-fast: false
       matrix:
         include:
-          - container: 'ubuntu:24.04'
+          - container: 'ubuntu:26.04'
             meson_setup: '-D b_sanitize=none -D b_coverage=true -Dmbedtls=disabled'
 
     container:
index 8a8e55657422931f4fdcbbf8d83a9794e227986a..7cbc450d433d6b9d9d7bca02c5811a2ce96f9954 100644 (file)
@@ -17,9 +17,9 @@ concurrency:
 
 jobs:
   docs:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-26.04
     container:
-      image: 'ubuntu:24.04'
+      image: 'ubuntu:26.04'
     steps:
       - name: Checkout
         uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
index fe9dfeb97029d113f83b3a82c28f898ea7865947..18e72723ca17a57b8b1f30212607c99441f4e857 100644 (file)
@@ -44,6 +44,7 @@ jobs:
             meson_setup: '-Dmbedtls=disabled'
           - container: 'ubuntu:24.04'
             meson_setup: '-Dmbedtls=disabled'
+          - container: 'ubuntu:26.04'
 
           # Special configurations