Enable C cache to speed up compilation

Signed-off-by: cachiusa <70309181+cachiusa@users.noreply.github.com>
This commit is contained in:
cachiusa
2024-05-19 17:13:35 +07:00
committed by GitHub
parent cd11c53ffb
commit d3a785fd4d
+7
View File
@@ -70,6 +70,11 @@ jobs:
git clone https://gitlab.com/OrangeFox/misc/scripts.git -b master
cd scripts
sudo bash setup/android_build_env.sh
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
max-size: "10G"
- name: Set-up Manifest
if: github.event.inputs.MANIFEST_BRANCH == '11.0' || github.event.inputs.MANIFEST_BRANCH == '12.1'
@@ -93,6 +98,8 @@ jobs:
run: |
cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}
set +e
export USE_CCACHE=1
export CCACHE_EXEC=/usr/bin/ccache
source build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true
set -e