File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,18 +22,20 @@ jobs:
2222 # - d2x
2323 # - d2xks
2424
25- env :
26- CCACHE_DIR : ~/.ccache
27- CCACHE_COMPRESS : " 1"
28- CCACHE_COMPRESSLEVEL : " 5"
29- CCACHE_MAXSIZE : " 10G"
30-
3125 steps :
3226 - name : Checkout repository
3327 uses : actions/checkout@v4
3428 with :
3529 submodules : recursive
3630
31+ - name : Restore ccache
32+ uses : actions/cache@v4
33+ with :
34+ path : ~/.ccache
35+ key : ccache-${{ runner.os }}-${{ matrix.model }}-${{ github.run_id }}
36+ restore-keys : |
37+ ccache-${{ runner.os }}-${{ matrix.model }}-
38+
3739 - name : Install dependencies
3840 run : |
3941 sudo apt-get update
@@ -57,14 +59,23 @@ jobs:
5759 zip \
5860 zstd
5961
62+ - name : Setup ccache environment
63+ run : |
64+ echo "CCACHE_DIR=$HOME/.ccache" >> $GITHUB_ENV
65+ echo "CCACHE_COMPRESS=1" >> $GITHUB_ENV
66+ echo "CCACHE_COMPRESSLEVEL=5" >> $GITHUB_ENV
67+ echo "CCACHE_MAXSIZE=10G" >> $GITHUB_ENV
68+ echo "CCACHE_BASEDIR=${GITHUB_WORKSPACE}" >> $GITHUB_ENV
69+ echo "CCACHE_CPP2=yes" >> $GITHUB_ENV
70+
6071 - name : Restore kernel build output
6172 uses : actions/cache@v4
6273 with :
6374 path : |
6475 out
65- key : kernel-out-Linux -${{ matrix.model }}-v1
76+ key : kernel-out-${{ runner.os }} -${{ matrix.model }}-${{ github.run_id }}
6677 restore-keys : |
67- kernel-out-Linux -${{ matrix.model }}-
78+ kernel-out-${{ runner.os }} -${{ matrix.model }}-
6879
6980 - name : Build kernel
7081 run : |
You can’t perform that action at this time.
0 commit comments