mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
CI/CircleCI: Use ccache for nopch
This commit is contained in:
@@ -65,13 +65,23 @@ jobs:
|
||||
apt-get install -y wget sudo mysql-client
|
||||
apt-get install -y libboost-dev libboost-filesystem-dev libboost-iostreams-dev libboost-program-options-dev libboost-regex-dev libboost-system-dev libboost-thread-dev libssl-dev libmysqlclient-dev libreadline-dev libncurses-dev zlib1g-dev libbz2-dev
|
||||
apt-get install -y cmake clang git
|
||||
apt-get install -y ccache
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- nopch-{{ .Branch }}-{{ .Revision }}
|
||||
- nopch-{{ .Branch }}
|
||||
- nopch
|
||||
- run:
|
||||
name: Setup
|
||||
command: |
|
||||
ccache -s
|
||||
git config user.email "circleci@build.bot" && git config user.name "Circl CI"
|
||||
export CC=/usr/bin/clang
|
||||
export CXX=/usr/bin/clang++
|
||||
export CC="ccache clang"
|
||||
export CXX="ccache clang++"
|
||||
export CCACHE_CPP2=yes
|
||||
export USE_CCACHE=1
|
||||
export PATH=/usr/lib/ccache:$PATH
|
||||
$CXX --version
|
||||
mkdir bin
|
||||
cd bin
|
||||
@@ -82,9 +92,14 @@ jobs:
|
||||
command: |
|
||||
cd bin
|
||||
make -j 4 -k && make install
|
||||
ccache -s
|
||||
cd check_install/bin
|
||||
./authserver --version
|
||||
./worldserver --version
|
||||
- save_cache:
|
||||
key: nopch-{{ .Branch }}-{{ .Revision }}
|
||||
paths:
|
||||
- /root/.ccache
|
||||
workflows:
|
||||
version: 2
|
||||
build_all:
|
||||
|
||||
Reference in New Issue
Block a user