File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,36 @@ jobs:
41
41
remove-haskell : ' true'
42
42
remove-codeql : ' true'
43
43
44
+ # Cache APT packages
45
+ - name : Cache APT Packages
46
+ uses : actions/cache@v4
47
+ with :
48
+ path : /var/cache/apt/archives
49
+ key : apt-packages-${{ runner.os }}-v1
50
+
44
51
- name : Install Repo and Python
45
52
run : |
46
53
# Install dependencies
47
54
sudo apt update
48
- sudo apt install repo python3 python-is-python3
55
+ sudo apt install repo python3 python-is-python3 ccache
56
+ echo "CCACHE_DIR=$(pwd)/ccache" >> $GITHUB_ENV
57
+ echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
58
+
59
+ # Configure ccache
60
+ - name : Configure ccache
61
+ run : |
62
+ ccache --set-config=cache_dir=$(pwd)/ccache
63
+ ccache --set-config=compress=true
64
+ ccache --set-config=sloppiness=include_file_ctime,include_file_mtime
65
+
66
+ # Cache ccache
67
+ - name : Cache ccache
68
+ uses : actions/cache@v4
69
+ with :
70
+ path : ccache
71
+ key : ccache-${{ inputs.model }}-${{ github.sha }}
72
+ restore-keys : |
73
+ ccache-${{ inputs.model }}-
49
74
50
75
- name : Set CONFIG Environment Variable
51
76
run : |
You can’t perform that action at this time.
0 commit comments