version: 2.07.{build} image: - Visual Studio 2017 - Ubuntu1804 configuration: - Release - Debug platform: - Win32 - x64 shallow_clone: true test: false for: - matrix: except: - image: Ubuntu1804 build: project: TheDarkMod.sln parallel: true verbosity: minimal after_build: - cmd: | 7z a -t7z TheDarkMod.7z ..\darkmod\*.exe 7z a -t7z TheDarkMod.7z ..\darkmod\*.dll 7z a -t7z TheDarkMod.7z ..\darkmod\glprogs artifacts: - path: TheDarkMod.7z name: TheDarkMod - matrix: only: - image: Ubuntu1804 install: - sh: | sudo apt-get update && sudo apt-get -y install mesa-common-dev libxxf86vm-dev libxext-dev if [ $PLATFORM = "Win32" ]; then sudo apt-get -y install g++-multilib libx11-dev:i386 libxxf86vm-dev:i386 libxext-dev:i386 fi build_script: - sh: | mkdir build cd build if [ $PLATFORM = "Win32" ]; then cmake .. -DCMAKE_BUILD_TYPE="${CONFIGURATION}" -DCOPY_EXE=OFF -DCMAKE_TOOLCHAIN_FILE=../sys/cmake/gcc_32bit.cmake else cmake .. -DCMAKE_BUILD_TYPE="${CONFIGURATION}" -DCOPY_EXE=OFF fi make -j6 after_build: - sh: | if [ $PLATFORM = "Win32" ]; then EXECUTABLE="thedarkmod.x86" else EXECUTABLE="thedarkmod.x64" fi tar -cSvf thedarkmod.tar "${EXECUTABLE}" "../glprogs" bzip2 thedarkmod.tar artifacts: - path: build/thedarkmod.tar.bz2 name: TheDarkModLinux