|
|
|
@ -7,19 +7,24 @@ Debian:
|
|
|
|
|
- linux
|
|
|
|
|
image: debian:bullseye
|
|
|
|
|
cache:
|
|
|
|
|
key: apt-cache
|
|
|
|
|
key: cache.002
|
|
|
|
|
paths:
|
|
|
|
|
- apt-cache/
|
|
|
|
|
- ccache/
|
|
|
|
|
before_script:
|
|
|
|
|
- export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
|
|
|
|
|
- apt-get update -yq
|
|
|
|
|
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y cmake build-essential libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-iostreams-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev libsdl2-dev libqt5opengl5-dev libopenal-dev libopenscenegraph-dev libunshield-dev libtinyxml-dev libmygui-dev libbullet-dev
|
|
|
|
|
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y cmake build-essential libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-iostreams-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev libsdl2-dev libqt5opengl5-dev libopenal-dev libopenscenegraph-dev libunshield-dev libtinyxml-dev libmygui-dev libbullet-dev ccache
|
|
|
|
|
stage: build
|
|
|
|
|
script:
|
|
|
|
|
script:
|
|
|
|
|
- export CCACHE_BASEDIR="`pwd`"
|
|
|
|
|
- export CCACHE_DIR="`pwd`/ccache" && mkdir -pv "$CCACHE_DIR"
|
|
|
|
|
- ccache -z -M 250M
|
|
|
|
|
- cores_to_use=$((`nproc`-2)); if (( $cores_to_use < 1 )); then cores_to_use=1; fi
|
|
|
|
|
- mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=MinSizeRel ../
|
|
|
|
|
- mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=MinSizeRel ../ -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
|
|
|
|
- make -j$cores_to_use
|
|
|
|
|
- DESTDIR=artifacts make install
|
|
|
|
|
- ccache -s
|
|
|
|
|
artifacts:
|
|
|
|
|
paths:
|
|
|
|
|
- build/artifacts/
|
|
|
|
|