Using ccache for app build

This commit is contained in:
Thomas Ferreira de Lima 2019-04-04 16:19:20 -04:00
parent e68047733f
commit 1399beb229
No known key found for this signature in database
GPG Key ID: 43E98870EAA0A86E
2 changed files with 30 additions and 6 deletions

View File

@ -343,7 +343,9 @@ matrix:
- name: "KLayout macOS 10.13 with py3.7"
os: osx
osx_image: xcode9.4 # macOS 10.13
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:
@ -360,7 +362,9 @@ matrix:
- name: "KLayout macOS 10.12 with py3.7"
os: osx
osx_image: xcode8.3 # macOS 10.12
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:
@ -377,7 +381,9 @@ matrix:
- name: "KLayout macOS 10.11 with py3.7"
os: osx
osx_image: xcode8 # macOS 10.11
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:
@ -393,7 +399,9 @@ matrix:
- name: "KLayout macOS 10.13 with py2.7"
os: osx
osx_image: xcode9.4 # macOS 10.13
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:
@ -409,7 +417,9 @@ matrix:
- name: "KLayout macOS 10.12 with py2.7"
os: osx
osx_image: xcode8.3 # macOS 10.12
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:
@ -425,7 +435,9 @@ matrix:
- name: "KLayout macOS 10.11 with py2.7"
os: osx
osx_image: xcode8 # macOS 10.11
cache: ccache
cache:
directories:
- ccache
addons:
homebrew:
packages:

View File

@ -8,6 +8,14 @@ PING_LOOP_PID=$!
touch build.txt
# Configure ccache
mkdir -p ccache;
export CCACHE_DIR="`pwd`/ccache"
# Show ccache stats
echo "Cache stats:"
ccache -s
echo "build"
make build >> build.txt 2>&1 || tail -500 build.txt
echo "deploy"
@ -17,6 +25,10 @@ make test >> build.txt 2>&1 || tail -500 build.txt
echo "dropbox-deploy"
make dropbox-deploy
# Show ccache stats
echo "Cache stats:"
ccache -s
echo "build finished"
kill $PING_LOOP_PID