ci: Enable MinGW
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user