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 <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2026-05-26 15:53:57 +10:00
parent dd1c7f1a91
commit 1aaa44849b

View file

@ -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: |