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 Jan 6, 2023
1 parent ec56b09 commit d27e779
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 6 deletions.
29 changes: 27 additions & 2 deletions .appveyor_msys_build.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,40 @@
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") CONFIGURE_FLAGS="--enable-static --disable-shared";;
"shared") CONFIGURE_FLAGS="--disable-static --enable-shared";;
esac
case "$FEATURE" in
*GMP*) CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-gmpcompat"
MODE="$MODE-gmp"
;;
esac
case "$FEATURE" in
*CXX*) CONFIGURE_FLAGS="$CONFIGURE_FLAGS --enable-cxx"
MODE="$MODE-cxx"
;;
esac

echo && echo build: ./configure ABI=$ABI $CONFIGURE_FLAGS
./configure ABI=$ABI $CONFIGURE_FLAGS --prefix=/usr/local

echo && echo build: make
make
# should work but falsely requires texlive ?!?
#echo && echo build: DISTCHECK_CONFIGURE_FLAGS="ABI=$ABI $LIB" make distcheck
#DISTCHECK_CONFIGURE_FLAGS="ABI=$ABI $LIB" make distcheck
echo && echo build: make check
make check

echo && echo build: make dist
make dist

if test "x$FEATURE" != "x"; then
echo && echo build: make install DESTDIR=$(pwd)/package
make install DESTDIR=$(pwd)/package && cd package/usr/local && \
zip -9 -r ../../../bin$ABI$MODE-$LIBRARY.zip *
fi
14 changes: 10 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@ environment:
matrix:
- COMPILER: MinGW-w64
ABI: 32
LIB: --enable-static --disable-shared
LIBRARY: static
FEATURE: CXX GMP
- COMPILER: MinGW-w64
ABI: 32
LIB: --disable-static --enable-shared
LIBRARY: shared
FEATURE: CXX GMP
- COMPILER: MinGW-w64
ABI: 64
LIB: --enable-static --disable-shared
LIBRARY: static
FEATURE: CXX GMP
- COMPILER: MinGW-w64
ABI: 64
LIB: --disable-static --enable-shared
LIBRARY: shared
FEATURE: CXX GMP

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

0 comments on commit d27e779

Please sign in to comment.