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:
4141 remove-haskell : ' true'
4242 remove-codeql : ' true'
4343
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+
4451 - name : Install Repo and Python
4552 run : |
4653 # Install dependencies
4754 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 }}-
4974
5075 - name : Set CONFIG Environment Variable
5176 run : |
You can’t perform that action at this time.
0 commit comments