Try to split 32-bit/64-bit builds

This commit is contained in:
Clownacy 2020-01-23 16:57:58 +00:00
parent a20b906257
commit 91f71d4030

View file

@ -28,6 +28,8 @@ addons:
env: env:
- MAKE_BUILD_TYPE=RELEASE=0 - MAKE_BUILD_TYPE=RELEASE=0
- MAKE_BUILD_TYPE=RELEASE=1 - MAKE_BUILD_TYPE=RELEASE=1
- SIXTY_FOUR_BIT=false
- SIXTY_FOUR_BIT=true
before_install: before_install:
# Setup MSYS2 # Setup MSYS2
@ -40,10 +42,17 @@ before_install:
export msys2='cmd //C RefreshEnv.cmd ' export msys2='cmd //C RefreshEnv.cmd '
export msys2+='& set MSYS=winsymlinks:nativestrict ' export msys2+='& set MSYS=winsymlinks:nativestrict '
export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start' export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start'
export mingw32="$msys2 -mingw32 -full-path -here -c "\"\$@"\" --" if [ "$SIXTY_FOUR_BIT" == "true" ]; then
export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --" export mingw="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --"
else
export mingw="$msys2 -mingw32 -full-path -here -c "\"\$@"\" --"
fi
export msys2+=" -msys2 -c "\"\$@"\" --" export msys2+=" -msys2 -c "\"\$@"\" --"
$msys2 pacman --sync --noconfirm --needed make mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain if [ "$SIXTY_FOUR_BIT" == "true" ]; then
$msys2 pacman --sync --noconfirm --needed make mingw-w64-x86_64-toolchain
else
$msys2 pacman --sync --noconfirm --needed make mingw-w64-i686-toolchain
fi
taskkill //IM gpg-agent.exe //F # https://travis-ci.community/t/4967 taskkill //IM gpg-agent.exe //F # https://travis-ci.community/t/4967
export PATH=/C/tools/msys64/mingw64/bin:$PATH export PATH=/C/tools/msys64/mingw64/bin:$PATH
export MAKE=mingw32-make # so that Autotools can find it export MAKE=mingw32-make # so that Autotools can find it
@ -63,34 +72,32 @@ before_install:
# Display build type # Display build type
- echo $MAKE_BUILD_TYPE - echo $MAKE_BUILD_TYPE
# Define CC and CXX
if ["$SIXTY_FOUR_BIT" == "true"
export CC="x86_64-w64-mingw32-gcc"
export CXX="x86_64-w64-mingw32-g++"
else
export CC="i686-w64-mingw32-gcc"
export CXX="i686-w64-mingw32-g++"
fi
# Define WINDRES # Define WINDRES
- | - |
if [ "$TRAVIS_OS_NAME" = "windows" ]; then if [ "$TRAVIS_OS_NAME" = "windows" ]; then
WINDRES32="windres" export WINDRES="windres"
WINDRES64="windres"
else else
WINDRES32="i686-w64-mingw32-windres" if ["$SIXTY_FOUR_BIT" == "true"
WINDRES64="x86_64-w64-mingw32-windres" export WINDRES="x86_64-w64-mingw32-windres"
else
export WINDRES="i686-w64-mingw32-windres"
fi
fi fi
# Display compilers name/version # Display compilers name/version
- | $mingw echo ${CC}
if [ "$TRAVIS_OS_NAME" = "windows" ]; then $mingw echo ${CXX}
$mingw32 echo ${CC} $mingw ${CC} --version
$mingw32 echo ${CXX} $mingw ${CXX} --version
$mingw32 ${CC} --version
$mingw32 ${CXX} --version
$mingw64 echo ${CC}
$mingw64 echo ${CXX}
$mingw64 ${CC} --version
$mingw64 ${CXX} --version
else
echo ${CC}
echo ${CXX}
${CC} --version
${CXX} --version
fi
before_cache: before_cache:
- |- - |-
@ -114,11 +121,8 @@ install:
- echo $JOBS - echo $JOBS
script: script:
# Compile 32-bit build # Build
- $mingw32 make -j ${JOBS} FIX_BUGS=1 ${MAKE_BUILD_TYPE} WARNINGS=1 WARNINGS_ALL=1 WINDOWS=1 STATIC=1 CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ WINDRES=${WINDRES32} - $mingw make -j ${JOBS} FIX_BUGS=1 ${MAKE_BUILD_TYPE} WARNINGS=1 WARNINGS_ALL=1 WINDOWS=1 STATIC=1
# Compile 64-bit build
- $mingw64 make -j ${JOBS} FIX_BUGS=1 ${MAKE_BUILD_TYPE} WARNINGS=1 WARNINGS_ALL=1 WINDOWS=1 STATIC=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ WINDRES=${WINDRES64}
after_success: after_success:
# Send success notification to Discord through DISCORD_WEBHOOK_URL # Send success notification to Discord through DISCORD_WEBHOOK_URL