From 21eca8362e7f4dd7379d16b83b45bedd5e156893 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Mon, 20 Apr 2020 10:50:49 +0800 Subject: [PATCH] Add ccache In Py35 CI (#23945) * add ccache * test=develop --- tools/manylinux1/Dockerfile.CI35-GCC4.8 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/manylinux1/Dockerfile.CI35-GCC4.8 b/tools/manylinux1/Dockerfile.CI35-GCC4.8 index 3efb46d54e1..6132f1f66be 100644 --- a/tools/manylinux1/Dockerfile.CI35-GCC4.8 +++ b/tools/manylinux1/Dockerfile.CI35-GCC4.8 @@ -34,6 +34,13 @@ RUN cd /opt && wget -q --no-check-certificate https://github.com/google/protobuf tar xzf protobuf-cpp-3.6.1.tar.gz && \ cd protobuf-3.6.1 && ./configure && make -j4 && make install && cd .. && rm -f protobuf-cpp-3.6.1.tar.gz +# ccache 3.6 +RUN wget https://paddle-ci.cdn.bcebos.com/ccache-3.6.tar.gz && \ + tar xf ccache-3.6.tar.gz && mkdir /usr/local/ccache-3.6 && cd ccache-3.6 && \ + ./configure -prefix=/usr/local/ccache-3.6 && \ + make -j8 && make install && \ + ln -s /usr/local/ccache-3.6/bin/ccache /usr/local/bin/ccache + RUN wget https://raw.githubusercontent.com/PaddlePaddle/Paddle/develop/python/requirements.txt -O /root/requirements.txt RUN LD_LIBRARY_PATH=/opt/_internal/cpython-2.7.11-ucs4/lib:${LD_LIBRARY_PATH} /opt/python/cp27-cp27mu/bin/pip install setuptools -U && \ -- GitLab