|
65 | 65 | ### |
66 | 66 | # caching |
67 | 67 | ### |
68 | | - CCACHE_DIR: ~/.ccache |
| 68 | + # CCACHE_DIR: ~/.ccache # Using ~ here makes it not find its cache. |
69 | 69 | CC: "ccache gcc" |
70 | 70 | CCACHE_NOCPP2: true |
71 | 71 | CCACHE_SLOPPINESS: file_macro,time_macros,include_file_ctime,include_file_mtime |
@@ -124,11 +124,15 @@ jobs: |
124 | 124 | if: startsWith(runner.os, 'Linux') |
125 | 125 | run: | |
126 | 126 | sudo apt-get install -y ccache sed gcc |
| 127 | + echo CCACHE_DIR=$HOME/.ccache >>$GITHUB_ENV |
| 128 | + mkdir -p $HOME/.ccache |
127 | 129 | - name: Install ccache (macos) |
128 | 130 | if: startsWith(runner.os, 'macOS') |
129 | 131 | run: | |
130 | 132 | brew install ccache |
131 | 133 | echo CFLAGS=$CFLAGS -Wno-parentheses-equality >>$GITHUB_ENV |
| 134 | + echo CCACHE_DIR=$HOME/.ccache >>$GITHUB_ENV |
| 135 | + mkdir -p $HOME/.ccache |
132 | 136 | - name: Set coverage status |
133 | 137 | # coverage is too slow on PyPy. We can't submit it from macOS (see that action), |
134 | 138 | # so don't bother taking the speed hit there either. |
@@ -264,9 +268,10 @@ jobs: |
264 | 268 | python -c 'import gevent.core; print(gevent.core.loop)' |
265 | 269 | python -c 'import gevent.ares; print(gevent.ares)' |
266 | 270 | echo CCache stats |
| 271 | + ccache --version |
267 | 272 | ccache -s -v |
268 | 273 | echo CCache Dir |
269 | | - ls -l ~/.ccache/ || true |
| 274 | + ls -l $CCACHE_DIR || true |
270 | 275 |
|
271 | 276 | - name: "Tests: Basic" |
272 | 277 | run: | |
@@ -388,6 +393,9 @@ jobs: |
388 | 393 | if: startsWith(runner.os, 'Linux') |
389 | 394 | run: | |
390 | 395 | sudo apt-get install -y ccache sed gcc |
| 396 | + echo CCACHE_DIR=$HOME/.ccache >>$GITHUB_ENV |
| 397 | + mkdir -p $HOME/.ccache |
| 398 | +
|
391 | 399 | - name: Cache ~/.ccache |
392 | 400 | uses: actions/cache@v4 |
393 | 401 | with: |
|
0 commit comments