|
62 | 62 |
|
63 | 63 | - name: Setup ccache
|
64 | 64 | run: |
|
| 65 | + mkdir -p $(pwd)/ccache/bazel # Ensure the directory exists |
65 | 66 | echo "CCACHE_DIR=$(pwd)/ccache" >> $GITHUB_ENV
|
| 67 | + echo "CCACHE_CPP2=true" >> $GITHUB_ENV |
| 68 | + echo "CCACHE_LOGFILE=/tmp/ccache.log" >> $GITHUB_ENV |
| 69 | + echo "CCACHE_LOGLEVEL=debug" >> $GITHUB_ENV |
66 | 70 | echo "PATH=/usr/lib/ccache:/usr/local/bin:/opt/sdk-dat-arm/host/usr/bin/:$PATH" >> $GITHUB_ENV
|
67 | 71 | mkdir -p ~/ccache-links
|
68 | 72 | cd ~/ccache-links
|
|
80 | 84 | - name: Configure ccache
|
81 | 85 | run: |
|
82 | 86 | mkdir -p $(pwd)/ccache/bazel # Ensure the directory exists
|
83 |
| - ccache --set-config=cache_dir=$(pwd)/ccache |
| 87 | + ccache --set-config=cache_dir="$(pwd)/ccache" |
84 | 88 | ccache --set-config=compression=true
|
85 | 89 | ccache --set-config=sloppiness=include_file_ctime,include_file_mtime
|
86 | 90 |
|
|
97 | 101 | run: |
|
98 | 102 | which ccache || echo "ccache not found!"
|
99 | 103 | which clang || echo "clang not found!"
|
| 104 | + ls -l ~/ccache-links |
100 | 105 |
|
101 | 106 | - name: Set CONFIG Environment Variable
|
102 | 107 | run: |
|
@@ -261,19 +266,8 @@ jobs:
|
261 | 266 | #git config --global user.name "TheWildJames"
|
262 | 267 | #git add *
|
263 | 268 | #git commit -s -a -m "getting rid of -dirty"
|
264 |
| - export HOSTCC="/usr/bin/ccache clang" |
265 |
| - export HOSTCXX="/usr/bin/ccache clang++" |
266 |
| - export CC="/usr/bin/ccache clang" |
267 |
| - sed -i 's/^HOSTCC=clang/HOSTCC=\/usr\/bin\/ccache clang/; s/^HOSTCXX=clang++/HOSTCXX=\/usr\/bin\/ccache clang++/; s/^CC=clang/CC=\/usr\/bin\/ccache clang/' ./kernel_platform/build/kernel/_setup_env.sh |
268 |
| - find ./kernel_platform/common -type f -name "Makefile" -exec sed -i \ |
269 |
| - -e 's/^HOSTCC=clang/HOSTCC=\"\/usr\/bin\/ccache clang\"/' \ |
270 |
| - -e 's/^HOSTCXX=clang++/HOSTCXX=\"\/usr\/bin\/ccache clang++\"/' \ |
271 |
| - -e 's/^CC=clang/CC=\"\/usr\/bin\/ccache clang\"/' {} + |
272 |
| - find ./kernel_platform/msm-kernel -type f -name "Makefile" -exec sed -i \ |
273 |
| - -e 's/^HOSTCC=clang/HOSTCC=\"\/usr\/bin\/ccache clang\"/' \ |
274 |
| - -e 's/^HOSTCXX=clang++/HOSTCXX=\"\/usr\/bin\/ccache clang++\"/' \ |
275 |
| - -e 's/^CC=clang/CC=\"\/usr\/bin\/ccache clang\"/' {} + |
276 | 269 | ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} gki
|
| 270 | + ccache -s |
277 | 271 |
|
278 | 272 | - name: Copy Images
|
279 | 273 | run: |
|
|
0 commit comments