This pull request introduces a set of patches that significantly reduce the execution time of GitHub Actions builds.
Key Improvements:
Cache implementation: Caches build artifacts using ccache, resulting in a significant speedup by reusing pre-compiled objects.
SMT awareness in CMake: Accurately accounts for the number of available threads when scheduling jobs, leading to better utilization of runners.
Separate caches per architecture: Prevents cache poisoning by isolating caches for different architectures.
Monthly LTS builds: Reduces runner utilization by scheduling LTS builds less frequently.
Results:
Total duration reduction: Before the patchset, a normal build without SMT awareness and ccache took approximately 30 minutes and 2 seconds. After applying the changes, the build time is reduced to 11 minutes and 42 seconds, representing a 63% improvement. You can see the detailed build run here.
Hi @Locietta,
Key Improvements:
Results:
Ccache Statistics:
Additional notes: