Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix: Use ccache for macOS Github CI builds#7459

Merged
vadi2 merged 3 commits intoMudlet:developmentfrom
rparet:development
Oct 8, 2024
Merged

Fix: Use ccache for macOS Github CI builds#7459
vadi2 merged 3 commits intoMudlet:developmentfrom
rparet:development

Conversation

@rparet
Copy link
Contributor

@rparet rparet commented Oct 6, 2024

Brief overview of PR changes/additions

This fixes #7150
Issue was that ccache was failing due to it's inability to guess the compiler by name on macOS.
Some details here: ccache/ccache#806
Solution was to set the CC/CXX environment variables explicitly and remove the path to ccache/libexec.
This change also updates CMake to 3.30.3 which is the most recent stable version packaged with Homebrew.
Added -vv to cmake --show-stats for more verbose cache stats in the post-build log.

Motivation for adding to Mudlet

Faster Github / CI builds!

Other info (issues closed, discussion etc)

@rparet rparet requested a review from a team as a code owner October 6, 2024 20:13
@add-deployment-links
Copy link

add-deployment-links bot commented Oct 6, 2024

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@rparet
Copy link
Contributor Author

rparet commented Oct 6, 2024

looks like ccache --show-stats -vv is not supported on ubuntu-20.04, so will revert that as it's not essential to the fix.

@rparet
Copy link
Contributor Author

rparet commented Oct 6, 2024

Stats post fix:
Cacheable calls: 428 / 457 (93.65%)
Hits: 423 / 428 (98.83%)
Direct: 420 / 423 (99.29%)
Preprocessed: 3 / 423 ( 0.71%)
Misses: 5 / 428 ( 1.17%)
Uncacheable calls: 29 / 457 ( 6.35%)
Local storage:
Cache size (GiB): 0.8 / 5.0 (15.39%)
Hits: 423 / 428 (98.83%)
Misses: 5 / 428 ( 1.17%)

Copy link
Member

@vadi2 vadi2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic, thank you!

@SlySven SlySven added the Hacktoberfest Code & win a T-shirt :) label Oct 7, 2024
@vadi2 vadi2 merged commit 9397680 into Mudlet:development Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hacktoberfest Code & win a T-shirt :)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS builds in Github don't utilise ccache

3 participants