ci: fix AppVeyor MSYS2 keyring PGP signature failure

The AppVeyor Windows CI has been failing on all builds because the
MSYS2 keyring on the AppVeyor image does not contain signing key
5F944B027F7FE2091985AA2EFA11531AA0AA7F57, causing pacman -Syuu to
abort with 'invalid or corrupted database (PGP signature)'.

Fix by refreshing the keyring before syncing packages:
  pacman-key --init
  pacman-key --populate msys2
  pacman -Sy msys2-keyring

This unblocks all AppVeyor build matrix entries (MINGW32/MINGW64,
with and without MSVC).
This commit is contained in:
LD-RW 2026-04-10 22:18:51 +03:00
parent 7c6a8f2203
commit 6144af7e9b

View file

@ -39,6 +39,9 @@ install:
- set PATH=c:\msys64\%MSYSTEM%\bin;c:\msys64\usr\bin;%PATH%
- if defined MSVC call "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %MSVC%
- if defined MSVC pacman --noconfirm -Rsc mingw-w64-%CPU%-gcc gcc
- pacman-key --init
- pacman-key --populate msys2
- pacman -Sy --noconfirm msys2-keyring
- pacman --noconfirm -Syuu
- pacman --noconfirm -S autoconf