File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,16 @@ language: sh
18
18
os : linux
19
19
dist : focal
20
20
21
+ cache :
22
+ pip : true
23
+ ccache : true
24
+ directories :
25
+ # Cache arm-none-eabi compiler
26
+ - ${HOME}/.cache/deps
27
+ # It looks like ccache for arm-none-eabi is not yet supported by Travis.
28
+ # Therefore manually adding ccache directory to cache
29
+ - ${HOME}/.ccache
30
+
21
31
matrix :
22
32
include :
23
33
@@ -37,6 +47,14 @@ matrix:
37
47
- export PATH="$PATH:${PWD}/gcc-arm-none-eabi-9-2020-q2-update/bin"
38
48
- popd
39
49
- arm-none-eabi-gcc --version
50
+ # Setup ccache
51
+ - ccache -o compiler_check=content
52
+ - ccache -M 1G
53
+ - pushd /usr/lib/ccache
54
+ - sudo ln -s $(which ccache) arm-none-eabi-gcc
55
+ - sudo ln -s $(which ccache) arm-none-eabi-g++
56
+ - export PATH="/usr/lib/ccache:$PATH"
57
+ - popd
40
58
# Fetch mbed-os: We use manual clone, with depth=1 and --single-branch to save time.
41
59
- git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
42
60
# Install Mbed CLI and dependencies
You can’t perform that action at this time.
0 commit comments