Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible to speed up compilation by sccache? #295

Open
playgithub opened this issue Feb 21, 2025 · 3 comments
Open

possible to speed up compilation by sccache? #295

playgithub opened this issue Feb 21, 2025 · 3 comments

Comments

@playgithub
Copy link

playgithub commented Feb 21, 2025

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.

@networkException
Copy link
Member

networkException commented Feb 21, 2025

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

@playgithub
Copy link
Author

playgithub commented Feb 22, 2025

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

@PF4Public
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants