Skip to content

Commit

Permalink
Merge pull request #8 from cachiusa/main
Browse files Browse the repository at this point in the history
Enable C cache to speed up compilation
  • Loading branch information
carlodandan authored May 24, 2024
2 parents 21a809b + 2867968 commit acb2b8a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/OrangeFox-Compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
max-size: "10G"

- name: Set-up Manifest
if: github.event.inputs.MANIFEST_BRANCH == '11.0' || github.event.inputs.MANIFEST_BRANCH == '12.1'
Expand All @@ -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
Expand Down

0 comments on commit acb2b8a

Please sign in to comment.