diff --git a/.github/workflows/OrangeFox-Compile.yml b/.github/workflows/OrangeFox-Compile.yml index 8594dc0..d85a8ab 100644 --- a/.github/workflows/OrangeFox-Compile.yml +++ b/.github/workflows/OrangeFox-Compile.yml @@ -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