Skip to content

CI: Enable compiler cache for Windows #5696

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

Merged
merged 1 commit into from
Aug 4, 2025

Conversation

ayeteadoe
Copy link
Contributor

@ayeteadoe ayeteadoe commented Aug 4, 2025

Addresses this message in ui-windows

NOTE: I will be adding a test/throwaway commit to confirm if Windows CI uses the cache. Once that is confirmed I will rebase without that commit. Update: The test worked, see result below, second commit has been re-based away.

Results

Initial run

Overall build time: 1h 21m 48s

https://github.com/LadybirdBrowser/ladybird/actions/runs/16713437851/job/47302228759?pr=5696

Cache Restore
Prepare all required actions
Getting action download info
Download immutable action package 'actions/cache@v4'
Run ./.github/actions/cache-restore
Run echo "timestamp=$(date -u "+%Y%m%d%H%M_%S")" >> "$GITHUB_OUTPUT"
Run actions/cache/restore@v4
Cache not found for input keys: "ccache" | "Windows" | "x86_64" | "ClangCL" | "Windows_Sanitizer_CI" | "0" | 202508040344_26, "ccache" | "Windows" | "x86_64" | "ClangCL" | "Windows_Sanitizer_CI" | "0"
Run $env:CCACHE_DIR = "C:\a\ladybird\ladybird/.ccache"
Unset cache size limit
Local storage:
  Cache size (GiB): 0.0
Statistics zeroed
Run actions/cache/restore@v4
Cache hit for: "vcpkg" | "Windows" | "x86_64" | "ClangCL" | "Windows_Sanitizer_CI" | "0" | 202508040344_26
Received 8388608 of 850387973 (1.0%), 8.0 MBs/sec
Received 130023424 of 850387973 (15.3%), 61.9 MBs/sec
Received 209715200 of 850387973 (24.7%), 66.4 MBs/sec
Received 268435456 of 850387973 (31.6%), 63.7 MBs/sec
Received 402653184 of 850387973 (47.3%), 76.0 MBs/sec
Received 524288000 of 850387973 (61.7%), 82.6 MBs/sec
Received 620756992 of 850387973 (73.0%), 83.8 MBs/sec
Received 671088640 of 850387973 (78.9%), 79.3 MBs/sec
Received 801112064 of 850387973 (94.2%), 84.2 MBs/sec
Received 850387973 of 850387973 (100.0%), 81.9 MBs/sec
Cache Size: ~811 MB (850387973 B)
"C:\Program Files\Git\usr\bin\tar.exe" -xf C:/a/_temp/83e99f17-e831-4fc0-bf31-6e8bcd801d4b/cache.tzst -P -C C:/a/ladybird/ladybird --force-local --use-compress-program "zstd -d"
Cache restored successfully
Cache restored from key: "vcpkg" | "Windows" | "x86_64" | "ClangCL" | "Windows_Sanitizer_CI" | "0" | 202508040029_08
Cache Save
Prepare all required actions
Getting action download info
Run ./.github/actions/cache-save
Run $env:CCACHE_DIR = "C:\a\ladybird\ladybird/.ccache"
Run actions/cache/save@v4
"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C C:/a/ladybird/ladybird --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
Sent 0 of 676688232 (0.0%), 0.0 MBs/sec
Sent 0 of 676688232 (0.0%), 0.0 MBs/sec
Sent 475361640 of 676688232 (70.2%), 150.9 MBs/sec
Sent 676688232 of 676688232 (100.0%), 171.5 MBs/sec
Cache saved with key: "ccache" | "Windows" | "x86_64" | "ClangCL" | "Windows_Sanitizer_CI" | "0" | 202508040344_26
Run $env:CCACHE_DIR = "C:\a\ladybird\ladybird/.ccache"
Cacheable calls:    2591 / 2591 (100.0%)
  Hits:                0 / 2591 ( 0.00%)
    Direct:            0
    Preprocessed:      0
  Misses:           2591 / 2591 (100.0%)
Local storage:
  Cache size (GiB):  0.8
  Hits:                0 / 2591 ( 0.00%)
  Misses:           2591 / 2591 (100.0%)
Run actions/cache/save@v4
"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C C:/a/ladybird/ladybird --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
Sent 0 of 850387929 (0.0%), 0.0 MBs/sec
Sent 0 of 850387929 (0.0%), 0.0 MBs/sec
Sent 536870912 of 850387929 (63.1%), 170.6 MBs/sec
Sent 850387929 of 850387929 (100.0%), 214.3 MBs/sec
Cache saved with key: "vcpkg" | "Windows" | "x86_64" | "ClangCL" | "Windows_Sanitizer_CI" | "0" | 202508040344_26

Second run

Overall build time: 11m 47s

https://github.com/LadybirdBrowser/ladybird/actions/runs/16715055691/job/47306842805?pr=5696

Cache Restore
Prepare all required actions
Getting action download info
Download immutable action package 'actions/cache@v4'
Run ./.github/actions/cache-restore
Run echo "timestamp=$(date -u "+%Y%m%d%H%M_%S")" >> "$GITHUB_OUTPUT"
Run actions/cache/restore@v4
Cache hit for: "ccache" | "Windows" | "x86_64" | "ClangCL" | "Windows_Sanitizer_CI" | "0" | 202508040547_03
Received 138412032 of 676688232 (20.5%), 131.9 MBs/sec
Received 335544320 of 676688232 (49.6%), 157.6 MBs/sec
Received 536870912 of 676688232 (79.3%), 159.1 MBs/sec
Received 676688232 of 676688232 (100.0%), 158.6 MBs/sec
Cache Size: ~645 MB (676688232 B)
"C:\Program Files\Git\usr\bin\tar.exe" -xf C:/a/_temp/a8921d5c-45b6-4104-812d-4cba97680eca/cache.tzst -P -C C:/a/ladybird/ladybird --force-local --use-compress-program "zstd -d"
Cache restored successfully
Cache restored from key: "ccache" | "Windows" | "x86_64" | "ClangCL" | "Windows_Sanitizer_CI" | "0" | 202508040344_26
Run $env:CCACHE_DIR = "C:\a\ladybird\ladybird/.ccache"
Unset cache size limit
Cacheable calls:    2591 / 2591 (100.0%)
  Hits:                0 / 2591 ( 0.00%)
    Direct:            0
    Preprocessed:      0
  Misses:           2591 / 2591 (100.0%)
Local storage:
  Cache size (GiB):  0.8
  Hits:                0 / 2591 ( 0.00%)
  Misses:           2591 / 2591 (100.0%)
Statistics zeroed
Run actions/cache/restore@v4
Cache hit for: "vcpkg" | "Windows" | "x86_64" | "ClangCL" | "Windows_Sanitizer_CI" | "0" | 202508040547_03
Received 163577856 of 850387929 (19.2%), 152.0 MBs/sec
Received 369098752 of 850387929 (43.4%), 173.7 MBs/sec
Received 536870912 of 850387929 (63.1%), 165.6 MBs/sec
Received 742391808 of 850387929 (87.3%), 171.0 MBs/sec
Received 850387929 of 850387929 (100.0%), 169.3 MBs/sec
Cache Size: ~811 MB (850387929 B)
"C:\Program Files\Git\usr\bin\tar.exe" -xf C:/a/_temp/d755558a-a299-41bc-937b-7f3dcdce74d8/cache.tzst -P -C C:/a/ladybird/ladybird --force-local --use-compress-program "zstd -d"
Cache restored successfully
Cache restored from key: "vcpkg" | "Windows" | "x86_64" | "ClangCL" | "Windows_Sanitizer_CI" | "0" | 202508040344_26
Cache Save
Prepare all required actions
Getting action download info
Run ./.github/actions/cache-save
Run $env:CCACHE_DIR = "C:\a\ladybird\ladybird/.ccache"
  
Run actions/cache/save@v4
  
"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C C:/a/ladybird/ladybird --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
Sent 0 of 677304768 (0.0%), 0.0 MBs/sec
Sent 543087040 of 677304768 (80.2%), 259.0 MBs/sec
Sent 677304768 of 677304768 (100.0%), 221.8 MBs/sec
Cache saved with key: "ccache" | "Windows" | "x86_64" | "ClangCL" | "Windows_Sanitizer_CI" | "0" | 202508040547_03
Run $env:CCACHE_DIR = "C:\a\ladybird\ladybird/.ccache"
  
Cacheable calls:    2591 / 2591 (100.0%)
  Hits:             2589 / 2591 (99.92%)
    Direct:         2589 / 2589 (100.0%)
    Preprocessed:      0 / 2589 ( 0.00%)
  Misses:              2 / 2591 ( 0.08%)
Local storage:
  Cache size (GiB):  0.8
  Cleanups:            2
  Hits:             2589 / 2591 (99.92%)
  Misses:              2 / 2591 ( 0.08%)
Run actions/cache/save@v4
  
"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C C:/a/ladybird/ladybird --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
Sent 0 of 850388093 (0.0%), 0.0 MBs/sec
Sent 536870912 of 850388093 (63.1%), 255.0 MBs/sec
Sent 716170365 of 850388093 (84.2%), 227.0 MBs/sec
Sent 850388093 of 850388093 (100.0%), 265.1 MBs/sec
Cache saved with key: "vcpkg" | "Windows" | "x86_64" | "ClangCL" | "Windows_Sanitizer_CI" | "0" | 202508040547_03

@alimpfard alimpfard added the windows Related to the Windows platform; on PRs this triggers a Windows CI build label Aug 4, 2025
@ayeteadoe ayeteadoe force-pushed the windows-ci-ccache branch 3 times, most recently from b7af858 to fd1168f Compare August 4, 2025 09:26
@ayeteadoe ayeteadoe requested a review from gmta August 4, 2025 09:41
@gmta gmta merged commit da29690 into LadybirdBrowser:master Aug 4, 2025
8 checks passed
@ayeteadoe ayeteadoe deleted the windows-ci-ccache branch August 4, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows Related to the Windows platform; on PRs this triggers a Windows CI build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants