CI: cache build dir and split between unity/non-unity

master
Martin Gerhardy 2019-08-08 12:08:22 +02:00
parent 7dd6c20fa1
commit bfec18f17a
1 changed files with 14 additions and 2 deletions

View File

@ -8,15 +8,27 @@ stages:
variables:
CCACHE_BASEDIR: ${CI_PROJECT_DIR}
CCACHE_DIR: ${CI_PROJECT_DIR}/ccache
BUILD_DIR: ${CI_PROJECT_DIR}/build
cache:
paths:
- ccache/
- build/
build:
build-unity:
stage: build
script:
- make -j 4 all
- cmake -H. -B${BUILD_DIR}/default
- make -j 4 all -C ${BUILD_DIR}/default
artifacts:
paths:
- build/compile_commands.json
build-non-unity:
stage: build
script:
- cmake -H. -B${BUILD_DIR}/non-unity -DDISABLE_UNITY=On
- make -j 4 all -C ${BUILD_DIR}/non-unity
artifacts:
paths:
- build/compile_commands.json