ci: Enable MinGW
This commit is contained in:
@@ -4,7 +4,7 @@ image:
|
||||
- Ubuntu2004
|
||||
- macos
|
||||
- macos-mojave
|
||||
# - Visual Studio 2019
|
||||
- Visual Studio 2019
|
||||
|
||||
clone_depth: 5
|
||||
|
||||
|
||||
21
ci/build.sh
21
ci/build.sh
@@ -1,4 +1,11 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
configure_options=(
|
||||
--enable-manpages
|
||||
--enable-test-tool
|
||||
--enable-tests
|
||||
--enable-examples
|
||||
)
|
||||
|
||||
case "$(uname)" in
|
||||
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-cunit
|
||||
export PATH="/mingw64/bin:$PATH"
|
||||
configure_options+=(--disable-shared)
|
||||
;;
|
||||
esac
|
||||
|
||||
./autogen.sh &&
|
||||
./configure --enable-manpages --enable-test-tool --enable-tests \
|
||||
--enable-examples &&
|
||||
./configure "${configure_options[@]}" &&
|
||||
make &&
|
||||
sudo make install
|
||||
case "$(uname)" in
|
||||
MSYS*|MINGW*)
|
||||
;;
|
||||
*)
|
||||
sudo make install
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user