Merge pull request #8 from cachiusa/main

Enable C cache to speed up compilation
This commit is contained in:
Carlo Dandan
2024-05-24 22:24:52 +08:00
committed by GitHub
+9
View File
@@ -69,6 +69,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'
@@ -92,6 +97,10 @@ jobs:
run: |
cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}
set +e
export USE_CCACHE=1
export CCACHE_EXEC=/usr/bin/ccache
# Hack: Disable Soong sandboxing to avoid conflict with ccache
sed -i 's/return sandboxConfig\.working/return false/g' build/soong/ui/build/sandbox_linux.go
source build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true
set -e