[PATCH v4 11/11] ci: check minsize build type in GHA

David Marchand david.marchand at redhat.com
Fri Feb 6 09:29:24 CET 2026


On Thu, 5 Feb 2026 at 22:31, Thomas Monjalon <thomas at monjalon.net> wrote:
>
> In GitHub Actions, the build for Fedora with GCC is updated
> to use the Meson build type "minsize".
> This type may have some different requirements (or bugs),
> so it is better for its maintenance to test it regularly in the CI.
>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> ---
>  .ci/linux-build.sh          | 2 ++
>  .github/workflows/build.yml | 2 ++
>  2 files changed, 4 insertions(+)
>
> diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
> index aac0bd3dc5..e0b914a142 100755
> --- a/.ci/linux-build.sh
> +++ b/.ci/linux-build.sh
> @@ -85,6 +85,8 @@ buildtype=debugoptimized
>
>  if [ "$BUILD_DEBUG" = "true" ]; then
>      buildtype=debug
> +elif [ "$BUILD_MINSIZE" = "true" ]; then
> +    buildtype=minsize
>  fi
>
>  if [ "$BUILD_DOCS" = "true" ]; then
> diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
> index ab140f885e..f0142efd3b 100644
> --- a/.github/workflows/build.yml
> +++ b/.github/workflows/build.yml
> @@ -325,6 +325,7 @@ jobs:
>          config:
>            - image: fedora:43
>              compiler: gcc
> +            checks: minsize
>            - image: fedora:43
>              compiler: clang
>
> @@ -362,6 +363,7 @@ jobs:
>          echo CCACHE_DIR=/root/.ccache >> ~/env
>          echo DEF_LIB=${{ matrix.config.library }} >> ~/env
>          echo STDATOMIC=false >> ~/env
> +        echo BUILD_MINSIZE=${{ contains(matrix.config.checks, 'minsize') }} >> ~/env
>      - name: Load the cached image
>        run: |
>          docker load -i ~/.image/${{ matrix.config.image }}.tar

LGTM.

Note: the reason for this (ugly) manual filling of env is that we do
not use GHA support of containers.
At the time I added fedora containers, I had multiple occasions when
pulling the images resulted in failures (getting throttled).

Maybe things got better since then... I see OVS does use GHA support.
Any volunteer to reevaluate this?


-- 
David Marchand



More information about the dev mailing list