Skip to content

Commit 68ef940

Browse files
committed
Cache Support: Try 7
1 parent c6bec67 commit 68ef940

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ jobs:
233233
perl -pi -e 's{UTS_VERSION="\$\(echo \$UTS_VERSION \$CONFIG_FLAGS \$TIMESTAMP \| cut -b -\$UTS_LEN\)"}{UTS_VERSION="#1 SMP PREEMPT Sat Apr 20 04:20:00 UTC 2024"}' ./common/scripts/mkcompile_h
234234
perl -pi -e 's{UTS_VERSION="\$\(echo \$UTS_VERSION \$CONFIG_FLAGS \$TIMESTAMP \| cut -b -\$UTS_LEN\)"}{UTS_VERSION="#1 SMP PREEMPT Sat Apr 20 04:20:00 UTC 2024"}' ./msm-kernel/scripts/mkcompile_h
235235
236+
- name: Verify ccache and clang
237+
run: |
238+
which ccache || echo "ccache not found!"
239+
which clang || echo "clang not found!"
240+
236241
- name: Build the Kernel
237242
run: |
238243
echo "Changing to configuration directory: $CONFIG..."
@@ -245,7 +250,10 @@ jobs:
245250
#git config --global user.name "TheWildJames"
246251
#git add *
247252
#git commit -s -a -m "getting rid of -dirty"
248-
sed -i 's|\${OPLUS_EXTRA_KBUILD_ARGS} ./kernel_platform/build/android/prepare_vendor.sh|\${OPLUS_EXTRA_KBUILD_ARGS} HOSTCC="/usr/bin/ccache clang" HOSTCXX="/usr/bin/ccache clang++" CC="/usr/bin/ccache clang" ./kernel_platform/build/android/prepare_vendor.sh|' ./kernel_platform/oplus/build/oplus_build_kernel.sh
253+
sed -i '/SKIP_MRPROPER=1 OUT_DIR=\${ANDROID_KP_OUT_DIR} .\/build\/build.sh/i \
254+
export HOSTCC="/usr/bin/ccache clang"\n\
255+
export HOSTCXX="/usr/bin/ccache clang++"\n\
256+
export CC="/usr/bin/ccache clang"' ./kernel_platform/build/android/prepare_vendor.sh
249257
./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} gki
250258
251259
- name: Copy Images

0 commit comments

Comments
 (0)