Skip to content

Commit

Permalink
appveyor with more build options and binaries wbhart#280
Browse files Browse the repository at this point in the history
  • Loading branch information
GitMensch committed Oct 1, 2019
1 parent ec56b09 commit 5a6c9bf
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
16 changes: 14 additions & 2 deletions .appveyor_msys_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ export PATH=/c/msys64/mingw$ABI/bin:/c/projects/mpir/bin/:$PATH
cd /c/projects/mpir
echo && echo build: ./autogen.sh
./autogen.sh
echo && echo build: ./configure ABI=$ABI $LIB
./configure ABI=$ABI $LIB
case "$LIBRARY" in
"static") LIB="--enable-static --disable-shared";;
"shared") LIB="--disable-static --enable-shared";;
esac
echo && echo build: ./configure ABI=$ABI $LIB $CONFIG_CXX $CONFIG_GMP
./configure ABI=$ABI $LIB $CONFIG_CXX $CONFIG_GMP
echo && echo build: make
make
# should work but falsely requires texlive ?!?
Expand All @@ -13,3 +17,11 @@ echo && echo build: make check
make check
echo && echo build: make dist
make dist
if ! test -z "$CONFIG_GMP"; then
if ! test -z "$CONFIG_CXX"; then
MODE="C++"
else
MODE=""
fi
make install DESTDIR=$(pwd)/bin$ABI$MODE-$LIBRARY
fi
24 changes: 20 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,30 @@ environment:
matrix:
- COMPILER: MinGW-w64
ABI: 32
LIB: --enable-static --disable-shared
LIBRARY: shared
- COMPILER: MinGW-w64
ABI: 64
LIBRARY: static
- COMPILER: MinGW-w64
ABI: 32
LIBRARY: static
CONFIG_CXX: --enable-cxx
CONFIG_GMP: --enable-gmpcompat
- COMPILER: MinGW-w64
ABI: 32
LIB: --disable-static --enable-shared
LIBRARY: shared
CONFIG_CXX: --enable-cxx
CONFIG_GMP: --enable-gmpcompat
- COMPILER: MinGW-w64
ABI: 64
LIB: --enable-static --disable-shared
LIBRARY: static
CONFIG_CXX: --enable-cxx
CONFIG_GMP: --enable-gmpcompat
- COMPILER: MinGW-w64
ABI: 64
LIB: --disable-static --enable-shared
LIBRARY: shared
CONFIG_CXX: --enable-cxx
CONFIG_GMP: --enable-gmpcompat

install:
- if [%COMPILER%]==[MinGW-w64] C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S %MINGW_PREREQ%"
Expand All @@ -34,3 +48,5 @@ cache:
artifacts:
- path: mpir-3.*
name: source tarball
- path: bin*
name: binaries

0 comments on commit 5a6c9bf

Please sign in to comment.