94
94
dont_skip_data_only_changes : 1
95
95
mods : --mods=magiclysm
96
96
title : Basic Build and Test (Clang 10, Ubuntu, Curses)
97
- ccache_limit : 5G
97
+ ccache_limit : 4. 5G
98
98
ccache_key : linux-llvm-10-break1
99
99
100
100
- compiler : clang++
@@ -106,7 +106,7 @@ jobs:
106
106
sound : 1
107
107
localize : 1
108
108
title : Clang 14, macOS 12, Tiles, Sound, x64 and arm64 Universal Binary
109
- ccache_limit : 6G
109
+ ccache_limit : 10G
110
110
ccache_key : macos-llvm-14-universal-break1
111
111
112
112
- compiler : g++-9
@@ -122,7 +122,7 @@ jobs:
122
122
pch : 1
123
123
cxxflags : -gsplit-dwarf
124
124
title : GCC 9, Curses, LTO
125
- ccache_limit : 4 .5G
125
+ ccache_limit : 7 .5G
126
126
ccache_key : linux-gcc-9-lto
127
127
128
128
- compiler : clang++-12
@@ -137,7 +137,7 @@ jobs:
137
137
cxxflags : --gcc-toolchain=/opt/mock-gcc-11
138
138
dont_skip_data_only_changes : 1
139
139
title : Clang 12, Ubuntu, Tiles, ASan
140
- ccache_limit : 4.5G
140
+ ccache_limit : 6G
141
141
ccache_key : linux-llvm-12-asan
142
142
143
143
- compiler : g++-11
@@ -150,7 +150,7 @@ jobs:
150
150
pch : 1
151
151
sanitize : address
152
152
title : GCC 11, Ubuntu, Curses, ASan
153
- ccache_limit : 6G
153
+ ccache_limit : 6.5G
154
154
ccache_key : linux-gcc-11-asan
155
155
156
156
- compiler : g++-9
@@ -162,7 +162,7 @@ jobs:
162
162
native : linux64
163
163
pch : 1
164
164
title : GCC 9, Ubuntu, Tiles, Sound, CMake
165
- ccache_limit : 3G
165
+ ccache_limit : 1G
166
166
ccache_key : linux-gcc-9-cmake
167
167
168
168
name : ${{ matrix.title }}
@@ -221,11 +221,12 @@ jobs:
221
221
if : ${{ env.SKIP == 'false' && runner.os == 'Linux' && matrix.tiles == 1 }}
222
222
run : |
223
223
sudo apt-get install libflac-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev libpulse-dev
224
- - name : install recent ccache on ubuntu 20.04
225
- if : ${{ env.SKIP == 'false' && runner.os == 'Linux' && matrix.os == 'ubuntu-20.04' }}
224
+ - name : install recent ccache on ubuntu
225
+ if : ${{ env.SKIP == 'false' && runner.os == 'Linux' }}
226
226
run : |
227
+ ccache --version
227
228
sudo apt-get remove --purge -y ccache
228
- curl -sL https://github.com/ccache/ccache/releases/download/v4.8.3 /ccache-4.8.3 -linux-x86_64.tar.xz | sudo tar Jxvf - --strip-components 1 -C /usr/bin ccache-4.8.3 -linux-x86_64/ccache
229
+ curl -sL https://github.com/ccache/ccache/releases/download/v4.10.2 /ccache-4.10.2 -linux-x86_64.tar.xz | sudo tar Jxvf - --strip-components 1 -C /usr/bin ccache-4.10.2 -linux-x86_64/ccache
229
230
ccache --version
230
231
- name : install Clang 12 (Ubuntu)
231
232
if : ${{ env.SKIP == 'false' && runner.os == 'Linux' && (matrix.compiler == 'clang++-12') }}
@@ -264,6 +265,7 @@ jobs:
264
265
if : ${{ env.SKIP == 'false' }}
265
266
run : |
266
267
echo "datetime=$(/bin/date -u "+%Y%m%d%H%M")" >> $GITHUB_OUTPUT
268
+ echo "datetime-seconds=$(/bin/date +%s)" >> $GITHUB_OUTPUT
267
269
echo "ccache-path=$([ "$RUNNER_OS" = "macOS" ] && echo '/Users/runner/Library/Caches/ccache' || echo '~/.cache/ccache')" >> $GITHUB_OUTPUT
268
270
shell : bash
269
271
- name : ccache cache files
@@ -282,6 +284,10 @@ jobs:
282
284
- name : post-build ccache manipulation
283
285
if : ${{ env.SKIP == 'false' && !failure() && (runner.os == 'Linux' || runner.os == 'macOS') }}
284
286
run : |
287
+ ccache --show-stats --verbose
288
+ NOW=`/bin/date +%s`
289
+ DELTA=$(( $NOW - ${{ steps.get-vars.outputs.datetime-seconds }} ))
290
+ ccache --evict-older-than ${DELTA}s
285
291
ccache --show-stats --verbose
286
292
ccache -M ${{ env.CCACHE_LIMIT }}
287
293
ccache -c
0 commit comments