Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 298acd18 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Merge branch '4113-master-fix_ccache' into 'master'

Fix ccache not working and builds taking same time as the one without cache

See merge request !125
parents 239c7e35 652cb556
Loading
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -15,8 +15,6 @@ stages:
  image: registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:chromium-latest
  rules:
    - if: $CI_PIPELINE_SOURCE != "schedule"
  tags:
    - build-browser
  before_script:
    - git submodule update --init --recursive build/cromite
    - $CI_PROJECT_DIR/update_cromite_patches.sh
@@ -30,24 +28,32 @@ stages:
build-cromite-arm:
  stage: build
  extends: .build-cromite
  tags:
    - build-browser-arm
  script:
    - $CI_PROJECT_DIR/build.sh -c -s -a arm

build-cromite-arm64:
  stage: build
  extends: .build-cromite
  tags:
    - build-browser-arm
  script:
    - $CI_PROJECT_DIR/build.sh -c -s -a arm64

build-cromite-x86:
  stage: build
  extends: .build-cromite
  tags:
    - build-browser-x86
  script:
    - $CI_PROJECT_DIR/build.sh -c -s -a x86

build-cromite-x64:
  stage: build
  extends: .build-cromite
  tags:
    - build-browser-x86
  script:
    - $CI_PROJECT_DIR/build.sh -c -s -a x64

+1 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ use_thin_lto=false
use_v8_context_snapshot=false
enable_glic = false
build_tflite_with_xnnpack = false
use_clang_modules = false

chrome_public_manifest_package = "foundation.e.browser"
system_webview_package_name="com.android.webview"
+6 −3
Original line number Diff line number Diff line
@@ -8,17 +8,20 @@ fi

echo ">> [$(date)] Setting up ccache config"
export PATH=$chromium_dir/src/third_party/llvm-build/Release+Asserts/bin:$PATH
export CCACHE_DIR=$chromium_dir/.ccache
export USE_CCACHE=1

echo ">> [$(date)] Applying ccache configuration"
ccache --set-config=max_size=200G \
ccache --set-config=max_size=75G \
  --set-config=compression_level=6 \
  --set-config=cache_dir="$chromium_dir/.ccache" \
  --set-config=base_dir="$chromium_dir/src" \
  --set-config=compiler_check=content \
  --set-config=hash_dir=false \
  --set-config=depend_mode=true \
  --set-config=sloppiness=time_macros

echo ">> [$(date)] Cleaning unused cache files and statistics"
ccache --evict-older-than 30d
ccache -c
ccache -z

echo ">> [$(date)] Recompressing existing cache entries"