Skip to content
Snippets Groups Projects
Commit a535f890 authored by Soeren Peters's avatar Soeren Peters
Browse files

Add ccache to rebuild job.

parent 0340da1d
No related branches found
No related tags found
No related merge requests found
...@@ -171,23 +171,35 @@ gcc_9_rebuild: ...@@ -171,23 +171,35 @@ gcc_9_rebuild:
- apt-get update - apt-get update
- apt-get install -y libboost-serialization-dev - apt-get install -y libboost-serialization-dev
- cd /tmp - cd /tmp
- apt-get install unzip - apt-get install -y unzip
- wget https://github.com/NVIDIA/cuda-samples/archive/10.1.2.zip - wget https://github.com/NVIDIA/cuda-samples/archive/10.1.2.zip
- unzip 10.1.2.zip - unzip 10.1.2.zip
- export NVCUDASAMPLES_ROOT=$(pwd)/cuda-samples-10.1.2 - export NVCUDASAMPLES_ROOT=$(pwd)/cuda-samples-10.1.2
- apt-get install -y ccache
- ccache --version
- export CCACHE_BASEDIR=$CI_PROJECT_DIR
- export CCACHE_DIR=$CI_PROJECT_DIR/cache
- ccache -s
script: script:
- cd $CI_PROJECT_DIR - cd $CI_PROJECT_DIR
- mkdir -p build_gcc_rebuild - mkdir -p build_gcc_rebuild
- cd build_gcc_rebuild - cd build_gcc_rebuild
- rm -r -f ./* - rm -r -f ./*
- cmake -E env CXXFLAGS="-fdiagnostics-show-option" cmake .. -DBUILD_VF_CPU=ON -DBUILD_VF_GPU=ON - cmake .. -DBUILD_VF_CPU=ON -DBUILD_VF_GPU=OFF
- make -j4 >&1 | tee gcc_warnings.txt - make -j4 2>&1 | tee gcc_warnings.txt
- ccache -s
artifacts: artifacts:
paths: paths:
- build_gcc_rebuild/gcc_warnings.txt - build_gcc_rebuild/gcc_warnings.txt
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- $CI_PROJECT_DIR/cache
############################################################################### ###############################################################################
## Tests ## ## Tests ##
############################################################################### ###############################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment