Add ccache to github actions

This commit is contained in:
Julian Kent
2020-03-11 11:13:49 +01:00
committed by Julian Kent
parent ab3670e02b
commit 88c9761f1f
3 changed files with 36 additions and 1 deletions
+11
View File
@@ -20,5 +20,16 @@ jobs:
env:
CI: true
run: make check_format
- uses: actions/cache@v1.1.0
id: ccache-persistence
with:
path: ~/.ccache
key: ccache-main-tests
restore-keys: |
ccache-main-tests
- name: setup ccache
run: mkdir -p ~/.ccache && echo "max_size = 300M" > ~/.ccache/ccache.conf && ccache -z && ccache -s
- name: main tests
run: make tests
- name: ccache post-run
run: ccache -s && ccache -z