hlsdk-portable/.travis.yml

25 lines
829 B
YAML
Raw Normal View History

2016-08-08 07:28:33 +00:00
language: cpp
compiler:
2016-08-08 07:52:29 +00:00
- gcc
- clang
2016-08-08 08:22:24 +00:00
os:
- linux
- osx
2017-12-16 21:35:36 +00:00
addons:
apt:
packages:
- gcc-multilib
- g++-multilib
before_script:
2017-12-16 21:35:36 +00:00
- curl http://libsdl.org/release/SDL2-devel-2.0.7-mingw.tar.gz | tar xzf -
- mv SDL2-2.0.7/i686-w64-mingw32/include/SDL2 cl_dll/
2016-08-08 07:28:33 +00:00
script:
2016-08-08 07:52:29 +00:00
- mkdir -p build && cd build
2017-12-16 21:35:36 +00:00
- cmake ../ -DCMAKE_C_FLAGS="-O2 -pipe -DNDEBUG -march=nocona -fvisibility=hidden -fomit-frame-pointer" -DCMAKE_CXX_FLAGS="-fno-exceptions -fno-rtti" -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--strip-all" -DGOLDSOURCE_SUPPORT=1 -DUSE_VOICEMGR=0 && make -j3
- mkdir -p gamelibs/cl_dlls
- mkdir -p gamelibs/dlls
- cp cl_dll/libclient.* gamelibs/cl_dlls
- cp dlls/libserver.* gamelibs/dlls
- tar -J -cf gamelibs.txz gamelibs
- curl --upload-file gamelibs.txz https://transfer.sh/gamelibs.txz