Replace travis with github action
This commit is contained in:
parent
63ee2baf48
commit
08f402c825
56
.travis.yml
56
.travis.yml
@ -1,56 +0,0 @@
|
|||||||
# Travis-CI configuration file for SuperTuxKart
|
|
||||||
#
|
|
||||||
# Configuration manual:
|
|
||||||
# http://docs.travis-ci.com/user/build-configuration/
|
|
||||||
#
|
|
||||||
sudo: false
|
|
||||||
language: cpp
|
|
||||||
os:
|
|
||||||
- linux
|
|
||||||
# - osx
|
|
||||||
compiler:
|
|
||||||
- gcc
|
|
||||||
- clang
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
# include:
|
|
||||||
# - osx_image: xcode11.3
|
|
||||||
fast_finish: true
|
|
||||||
|
|
||||||
env:
|
|
||||||
matrix:
|
|
||||||
- BUILD_TYPE="Debug" SERVER_ONLY="OFF"
|
|
||||||
- BUILD_TYPE="Debug" SERVER_ONLY="ON"
|
|
||||||
- BUILD_TYPE="Release" SERVER_ONLY="OFF"
|
|
||||||
- BUILD_TYPE="Release" SERVER_ONLY="ON"
|
|
||||||
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- build-essential
|
|
||||||
- cmake
|
|
||||||
- libbluetooth-dev
|
|
||||||
- libcurl4-gnutls-dev
|
|
||||||
- libfreetype6-dev
|
|
||||||
- libharfbuzz-dev
|
|
||||||
- libjpeg-dev
|
|
||||||
- libogg-dev
|
|
||||||
- libopenal-dev
|
|
||||||
- libpng-dev
|
|
||||||
- libsdl2-dev
|
|
||||||
- libvorbis-dev
|
|
||||||
- pkg-config
|
|
||||||
- zlib1g-dev
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew bundle; fi
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo mkdir -p /usr/local/include/; fi
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo ln -s /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/ /usr/local/include/GL; fi
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CMAKE_PREFIX_PATH=/usr/local/opt/freetype/:/usr/local/opt/curl/:/usr/local/opt/libogg/:/usr/local/opt/libogg/:/usr/local/opt/libvorbis/:/usr/local/opt/openssl\@1.1/:/usr/local/opt/harfbuzz/; fi
|
|
||||||
|
|
||||||
script:
|
|
||||||
- mkdir "build"
|
|
||||||
- cd "build"
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then /usr/local/opt/cmake/bin/cmake .. -DFREETYPE_INCLUDE_DIRS=/usr/local/opt/freetype/include/freetype2/ -DOPENAL_INCLUDE_DIR=/usr/local/opt/openal-soft/include/ -DOPENAL_LIBRARY=/usr/local/opt/openal-soft/lib/libopenal.dylib -DFREETYPE_LIBRARY=/usr/local/opt/freetype/lib/libfreetype.dylib -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSERVER_ONLY=$SERVER_ONLY -DCHECK_ASSETS=off -DBUILD_RECORDER=off; fi
|
|
||||||
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSERVER_ONLY=$SERVER_ONLY -DCHECK_ASSETS=off -DBUILD_RECORDER=off; fi
|
|
||||||
- make VERBOSE=1 -j3
|
|
@ -1,5 +1,5 @@
|
|||||||
# SuperTuxKart
|
# SuperTuxKart
|
||||||
[](https://travis-ci.com/supertuxkart/stk-code)
|
[](https://github.com/supertuxkart/stk-code/actions?query=workflow%3Amain)
|
||||||
[](https://ci.appveyor.com/project/supertuxkart/stk-code)
|
[](https://ci.appveyor.com/project/supertuxkart/stk-code)
|
||||||
[](https://webchat.freenode.net/?channels=supertuxkart)
|
[](https://webchat.freenode.net/?channels=supertuxkart)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user