From cd470e716fee80b86988f6fbd3bd3dad604bb705 Mon Sep 17 00:00:00 2001 From: jmd Date: Sat, 6 Jul 2024 20:09:22 -0700 Subject: [PATCH] [ci] fix: disable ccache for now --- scripts/docker_prepare.sh | 48 +++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/scripts/docker_prepare.sh b/scripts/docker_prepare.sh index 751ed508f..f565ce35d 100644 --- a/scripts/docker_prepare.sh +++ b/scripts/docker_prepare.sh @@ -8,24 +8,24 @@ set -xe if [[ -f "/etc/centos-release" ]]; then # sometimes the epel server is down. retry 5 times for i in $(seq 1 5); do - yum install -y zlib-devel curl-devel expat-devel libpng-devel ccache curl zip unzip tar && s=0 && break || s=$? && sleep 15; + yum install -y zlib-devel curl-devel expat-devel libpng-devel curl zip unzip tar && s=0 && break || s=$? && sleep 15; done [ $s -eq 0 ] || exit $s - if [[ -d "/usr/lib64/ccache" ]]; then - ln -s /usr/bin/ccache /usr/lib64/ccache/c++ - ln -s /usr/bin/ccache /usr/lib64/ccache/cc - ln -s /usr/bin/ccache /usr/lib64/ccache/gcc - ln -s /usr/bin/ccache /usr/lib64/ccache/g++ - export PATH="/usr/lib64/ccache:$PATH" - elif [[ -d "/usr/lib/ccache" ]]; then - ln -s /usr/bin/ccache /usr/lib/ccache/c++ - ln -s /usr/bin/ccache /usr/lib/ccache/cc - ln -s /usr/bin/ccache /usr/lib/ccache/gcc - ln -s /usr/bin/ccache /usr/lib/ccache/g++ - export PATH="/usr/lib/ccache:$PATH" - fi + # if [[ -d "/usr/lib64/ccache" ]]; then + # ln -s /usr/bin/ccache /usr/lib64/ccache/c++ + # ln -s /usr/bin/ccache /usr/lib64/ccache/cc + # ln -s /usr/bin/ccache /usr/lib64/ccache/gcc + # ln -s /usr/bin/ccache /usr/lib64/ccache/g++ + # export PATH="/usr/lib64/ccache:$PATH" + # elif [[ -d "/usr/lib/ccache" ]]; then + # ln -s /usr/bin/ccache /usr/lib/ccache/c++ + # ln -s /usr/bin/ccache /usr/lib/ccache/cc + # ln -s /usr/bin/ccache /usr/lib/ccache/gcc + # ln -s /usr/bin/ccache /usr/lib/ccache/g++ + # export PATH="/usr/lib/ccache:$PATH" + # fi elif [[ -f "/etc/alpine-release" ]]; then # musllinux prep @@ -36,17 +36,17 @@ fi # hack until https://github.com/pypa/cibuildwheel/issues/1030 is fixed # Place ccache folder in /outputs -HOST_CCACHE_DIR="/host${HOST_CCACHE_DIR:-/home/runner/work/rollnw/rollnw/.ccache}" -if [ -d $HOST_CCACHE_DIR ]; then - mkdir -p /output - cp -R $HOST_CCACHE_DIR /output/.ccache -fi +# HOST_CCACHE_DIR="/host${HOST_CCACHE_DIR:-/home/runner/work/rollnw/rollnw/.ccache}" +# if [ -d $HOST_CCACHE_DIR ]; then +# mkdir -p /output +# cp -R $HOST_CCACHE_DIR /output/.ccache +# fi -ls -la /output/ +# ls -la /output/ -ccache -o cache_dir="/output/.ccache" -ccache -M 5 G # set cache size to 5 G +# ccache -o cache_dir="/output/.ccache" +# ccache -M 5 G # set cache size to 5 G # Show ccache stats -echo "Cache stats:" -ccache -s +# echo "Cache stats:" +# ccache -s