From 1aaa44849b9a695ed107e6e8a88c1348db68f7d0 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 26 May 2026 15:53:57 +1000 Subject: [PATCH] ci: Skip swig install for mingw32 Windows build MSYS2 has dropped the mingw-w64-i686-swig package, causing the mingw32 CI job to fail during setup. Since the Windows build doesn't enable Python bindings anyway, conditionally install swig and python-setuptools-scm only for the 64-bit subsystems. Assisted-by: Claude:claude-opus-4-6 Signed-off-by: David Gibson --- .github/workflows/build.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6e0a9c..ad9ce17 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,10 +77,10 @@ jobs: fail-fast: false matrix: include: - - { sys: mingw32 } - - { sys: mingw64 } - - { sys: ucrt64 } - - { sys: clang64 } + - { sys: mingw32, swig: false } + - { sys: mingw64, swig: true } + - { sys: ucrt64, swig: true } + - { sys: clang64, swig: true } name: ${{ matrix.sys }} defaults: run: @@ -105,8 +105,7 @@ jobs: meson:p ninja:p libyaml:p - swig:p - python-setuptools-scm:p + ${{ matrix.swig && 'swig:p python-setuptools-scm:p' || '' }} - name: '🚧 Build' run: |