@@ -45,30 +45,33 @@ jobs:
45
45
- name : Install dependencies
46
46
run : |
47
47
sudo apt install -y ccache ninja-build
48
- export PATH=/usr/lib/ccache:${{ runner.temp }}/arm-gcc/bin/:/home/runner/.local/bin:$PATH
49
- for i in ${{ runner.temp }}/arm-gcc/bin/* ; do sudo ln -s /usr/bin/ccache /usr/lib/ccache/$(basename $i); done
50
- ccache --set-config=cache_dir="$GITHUB_WORKSPACE"
51
- ccache --set-config=cache_dir="$GITHUB_WORKSPACE/.ccache"
52
- ccache --set-config=max_size=2Gi
53
- ccache -z -s
48
+ export PATH="/usr/lib/ccache:$ARM_NONE_EABI_GCC_PATH:/home/runner/.local/bin:$PATH"
49
+ for i in "$ARM_NONE_EABI_GCC_PATH/"* ; do sudo ln -s /usr/bin/ccache /usr/lib/ccache/$(basename $i); done
54
50
arm-none-eabi-gcc -v | tee log.txt
55
- (git status; git log -1 )>> log.txt
51
+ (git status; git log -1)>> log.txt
56
52
57
53
- name : Cache CCache
58
54
id : ccache
59
55
uses : actions/cache@v3
60
56
with :
61
57
path : .ccache
62
- key : ${{ runner.os }}-ccache-${{ hashFiles('log.txt') }}
63
- restore-keys : ${{ runner.os }}-ccache-
58
+ key : ${{ runner.os }}-gcc-${{ matrix.gcc }}-${{ hashFiles('log.txt') }}
59
+ restore-keys : |
60
+ ${{ runner.os }}-gcc-${{ matrix.gcc }}-
61
+
62
+ - name : Configure CCache
63
+ run : |
64
+ ccache --set-config=cache_dir="$GITHUB_WORKSPACE/.ccache"
65
+ ccache --set-config=max_size=2Gi
66
+ ccache -z -s
64
67
65
68
- name : Compile
66
69
run : |
67
- export PATH="/usr/lib/ccache:${{ runner.temp }}/arm-gcc/bin/ :/home/runner/.local/bin:$PATH"
70
+ export PATH="/usr/lib/ccache:$ARM_NONE_EABI_GCC_PATH :/home/runner/.local/bin:$PATH"
68
71
python tools/progen_compile.py --release --parallel -v
69
- (ls -lR firmware_*; ccache -s; arm-none-eabi-gcc -v) | tee log.txt
70
72
mkdir bootloaders
71
73
cp projectfiles/make_gcc_arm/*_bl/build/*_crc.{bin,hex} bootloaders
74
+ (ls -lR firmware_*; ccache -s; arm-none-eabi-gcc -v) | tee log.txt
72
75
73
76
- name : Upload test artifacts
74
77
uses : actions/upload-artifact@v3
0 commit comments