ungoogled-chromium-archlinux icon indicating copy to clipboard operation
ungoogled-chromium-archlinux copied to clipboard

possible to speed up compilation by sccache?

Open playgithub opened this issue 9 months ago • 3 comments

https://github.com/marketplace/actions/sccache-action

The sccache action can be used in GitHub Actions workflows to integrate sccache into the build process. The sccache action is a step in a workflow that can be used to cache compilation results for subsequent builds, reducing the build time and speeding up the overall development process.

If it works, it'll save build time dramatically, also true for disk spaces.

playgithub avatar Feb 21 '25 15:02 playgithub

sccache can easily use GitHub actions cache with almost no configuration

Our Workflow is very complex and held together by duct tape. I doubt putting the effort in to get this action working is worth it. The situation will improve eventually, I don't have much time to work on new infra currently

networkException avatar Feb 21 '25 18:02 networkException

When I asked copilot on github: "build chromium with sscache"

The answer is quite simple, maybe it worths a try.

Here is the complete script to build Chromium with sccache:

# Install sccache (if not already installed)
cargo install sccache

# Set up sccache cache directory
export SCCACHE_DIR=/path/to/sccache/cache

# Configure Chromium build to use sccache
export CC="sccache clang"
export CXX="sccache clang++"
export AR="sccache ar"
export RANLIB="sccache ranlib"

# Navigate to the Chromium source directory
cd /path/to/chromium/src

# Run the Chromium build
gn gen out/Default
ninja -C out/Default chrome

playgithub avatar Feb 22 '25 03:02 playgithub

The answer is quite simple

The simplicity of the answer comes from the simplicity of the "knowledge" that was fed to copilot and other such "tools" combined with the simplicity of "thinking process" that those "tools" poses. Not from the simplicity of a task itself.

PF4Public avatar Feb 22 '25 12:02 PF4Public