diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index adc6c898240601f9b7ecf81f726d4465c39d92b2..a6f900a4d144fa06dbbe8f4f8312bed5923b8b33 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,7 +34,9 @@ build:server: key: server_thirdparty paths: - build/third_party + - /root/.ccache script: + - apt install ccache - export http_proxy=http://172.19.57.45:3128 - export https_proxy=http://172.19.57.45:3128 #- export http_proxy=http://agent.baidu.com:8118 @@ -62,7 +64,9 @@ build:mobile: paths: - $MOBILE_LITE_CACHE0 - $MOBILE_LITE_CACHE1 + - /root/.ccache script: + - apt install ccache - export http_proxy=http://172.19.57.45:3128 - export https_proxy=http://172.19.57.45:3128 - ./paddle/fluid/lite/tools/build.sh build_test_arm diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ef4a4c351e4b701f481b5b23076ea3535fa7231..312bdb7f1ae11576abf6f5ec222bae72bcd67bb5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -166,6 +166,7 @@ if (WITH_LITE AND LITE_WITH_LIGHT_WEIGHT_FRAMEWORK) #include(external/zlib) # download, build, install gtest include(external/protobuf) # download, build, install protobuf include(external/eigen) # download eigen3 + include(ccache) # set ccache for compilation include(generic) # simplify cmake module include(configure) # add paddle env configuration