ci: Enable MinGW

This commit is contained in:
Bart Van Assche
2021-07-18 20:10:53 -07:00
parent 5e6f6ec5ed
commit 2a65548f22
2 changed files with 18 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ image:
- Ubuntu2004 - Ubuntu2004
- macos - macos
- macos-mojave - macos-mojave
# - Visual Studio 2019 - Visual Studio 2019
clone_depth: 5 clone_depth: 5

View File

@@ -1,4 +1,11 @@
#!/bin/sh #!/bin/bash
configure_options=(
--enable-manpages
--enable-test-tool
--enable-tests
--enable-examples
)
case "$(uname)" in case "$(uname)" in
MSYS*|MINGW*) MSYS*|MINGW*)
@@ -12,11 +19,17 @@ case "$(uname)" in
pacman --noconfirm --sync --needed mingw-w64-x86_64-gcc pacman --noconfirm --sync --needed mingw-w64-x86_64-gcc
pacman --noconfirm --sync --needed mingw-w64-x86_64-cunit pacman --noconfirm --sync --needed mingw-w64-x86_64-cunit
export PATH="/mingw64/bin:$PATH" export PATH="/mingw64/bin:$PATH"
configure_options+=(--disable-shared)
;; ;;
esac esac
./autogen.sh && ./autogen.sh &&
./configure --enable-manpages --enable-test-tool --enable-tests \ ./configure "${configure_options[@]}" &&
--enable-examples &&
make && make &&
sudo make install case "$(uname)" in
MSYS*|MINGW*)
;;
*)
sudo make install
;;
esac