ci: First phase of adding MingW support

This commit is contained in:
Bart Van Assche
2021-07-17 19:50:35 -07:00
parent cb4489776b
commit 8b4670db3e
5 changed files with 27 additions and 1 deletions

1
ci/build.bat Normal file
View File

@@ -0,0 +1 @@
C:\msys64\usr\bin\bash --login -c 'set -x; cd "${APPVEYOR_BUILD_FOLDER}"; ci/build.sh'

View File

@@ -1,5 +1,20 @@
#!/bin/sh
case "$(uname)" in
MSYS*|MINGW*)
pacman --noconfirm --remove mingw-w64-x86_64-gcc-ada
pacman --noconfirm --remove mingw-w64-x86_64-gcc-fortran
pacman --noconfirm --remove mingw-w64-x86_64-gcc-libgfortran
pacman --noconfirm --remove mingw-w64-x86_64-gcc-objc
pacman --noconfirm --sync --refresh
pacman --noconfirm --sync --needed diffutils
pacman --noconfirm --sync --needed make
pacman --noconfirm --sync --needed mingw-w64-x86_64-gcc
pacman --noconfirm --sync --needed mingw-w64-x86_64-cunit
export PATH="/mingw64/bin:$PATH"
;;
esac
./autogen.sh &&
./configure --enable-manpages --enable-test-tool --enable-tests \
--enable-examples &&