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
+12 -1
View File
@@ -1,4 +1,4 @@
name: compile nuttx
name: nuttx
on:
push:
@@ -55,8 +55,19 @@ jobs:
- uses: actions/checkout@v1
with:
token: ${{secrets.ACCESS_TOKEN}}
- uses: actions/cache@v1.1.0
id: ccache-persistence
with:
path: ~/.ccache
key: ccache-nuttx-${{matrix.config}}
restore-keys: |
ccache-nuttx-${{matrix.config}}
- name: setup ccache
run: mkdir -p ~/.ccache && echo "max_size = 300M" > ~/.ccache/ccache.conf && ccache -z && ccache -s
- name: make ${{matrix.config}}
run: make ${{matrix.config}}
- name: ccache post-run
run: ccache -s && ccache -z
- name: Upload px4 package
uses: actions/upload-artifact@v1
with: