ungoogled-chromium-archlinux
ungoogled-chromium-archlinux copied to clipboard
possible to speed up compilation by sccache?
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.
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
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
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.