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>
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 \
libzstd-dev \
linux-headers-generic \
meson \
+ "${mbedtls_pkgs[@]}" \
scdoc \
zlib1g-dev \
zstd
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 }}
jobs:
analyze:
name: Analyze
- runs-on: ubuntu-24.04
+ runs-on: ubuntu-26.04
permissions:
actions: read
security-events: write
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 }}
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
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:
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
meson_setup: '-Dmbedtls=disabled'
- container: 'ubuntu:24.04'
meson_setup: '-Dmbedtls=disabled'
+ - container: 'ubuntu:26.04'
# Special configurations