Skip to content

Commit b00b4fb

Browse files
committed
Debugging why ccache isn't being saved.
1 parent 90be38c commit b00b4fb

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ env:
6565
###
6666
# caching
6767
###
68-
CCACHE_DIR: ~/.ccache
68+
# CCACHE_DIR: ~/.ccache # Using ~ here makes it not find its cache.
6969
CC: "ccache gcc"
7070
CCACHE_NOCPP2: true
7171
CCACHE_SLOPPINESS: file_macro,time_macros,include_file_ctime,include_file_mtime
@@ -124,11 +124,15 @@ jobs:
124124
if: startsWith(runner.os, 'Linux')
125125
run: |
126126
sudo apt-get install -y ccache sed gcc
127+
echo CCACHE_DIR=$HOME/.ccache >>$GITHUB_ENV
128+
mkdir -p $HOME/.ccache
127129
- name: Install ccache (macos)
128130
if: startsWith(runner.os, 'macOS')
129131
run: |
130132
brew install ccache
131133
echo CFLAGS=$CFLAGS -Wno-parentheses-equality >>$GITHUB_ENV
134+
echo CCACHE_DIR=$HOME/.ccache >>$GITHUB_ENV
135+
mkdir -p $HOME/.ccache
132136
- name: Set coverage status
133137
# coverage is too slow on PyPy. We can't submit it from macOS (see that action),
134138
# so don't bother taking the speed hit there either.
@@ -264,9 +268,10 @@ jobs:
264268
python -c 'import gevent.core; print(gevent.core.loop)'
265269
python -c 'import gevent.ares; print(gevent.ares)'
266270
echo CCache stats
271+
ccache --version
267272
ccache -s -v
268273
echo CCache Dir
269-
ls -l ~/.ccache/ || true
274+
ls -l $CCACHE_DIR || true
270275
271276
- name: "Tests: Basic"
272277
run: |
@@ -388,6 +393,9 @@ jobs:
388393
if: startsWith(runner.os, 'Linux')
389394
run: |
390395
sudo apt-get install -y ccache sed gcc
396+
echo CCACHE_DIR=$HOME/.ccache >>$GITHUB_ENV
397+
mkdir -p $HOME/.ccache
398+
391399
- name: Cache ~/.ccache
392400
uses: actions/cache@v4
393401
with:

0 commit comments

Comments
 (0)