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

CI: Cache homebrew deps #35

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

andy5995
Copy link
Contributor

@andy5995 andy5995 commented Dec 4, 2024

No description provided.

@andy5995
Copy link
Contributor Author

andy5995 commented Dec 4, 2024

Some things can be cached: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows

I'm not sure if this one of them. I may give up on this.

Run actions/cache@v3
  with:
    path: /usr/local/Cellar
  /usr/local/opt
  
    key: brew-cache-macOS-0305e7d1fec85c978b1856b2aa2011752ada64d9eecb4ea0b966dca8e14672c8
    restore-keys: brew-cache-macOS-
  
    enableCrossOsArchive: false
    fail-on-cache-miss: false
    lookup-only: false
  env:
    LDFLAGS: -L/opt/homebrew/opt/llvm/lib
    CPPFLAGS: -I/opt/homebrew/opt/llvm/include
Cache Size: ~48 MB (50068404 B)
/opt/homebrew/bin/gtar -xf /Users/runner/work/_temp/5f930b4a-1c1e-4b49-8379-0280d258360b/cache.tzst -P -C /Users/runner/work/vs-fltk/vs-fltk --delay-directory-restore --use-compress-program unzstd
Received 50068404 of 50068404 (100.0%), 47.6 MBs/sec
/opt/homebrew/bin/gtar: ../../../../../usr/local/opt: Cannot utime: Permission denied
/opt/homebrew/bin/gtar: Exiting with failure status due to previous errors
Warning: Failed to restore: "/opt/homebrew/bin/gtar" failed with error: The process '/opt/homebrew/bin/gtar' failed with exit code 2
Cache not found for input keys: brew-cache-macOS-0305e7d1fec85c978b1856b2aa2011752ada64d9eecb4ea0b966dca8e14672c8, brew-cache-macOS-

@KaruroChori
Copy link
Owner

KaruroChori commented Dec 4, 2024

I see, my understanding is that would allow to reuse a good chunk of data needed to setup the build environment, effectively reducing the time taken in CI pipelines.

Sadly I am not really able to assist on that, so if you feel like it is not getting anywhere or it is too easy to break, let's skip it for now and we can always revise the idea once more of the CI is up and running.

@KaruroChori KaruroChori force-pushed the master branch 9 times, most recently from 6bde2b7 to 52a188b Compare December 11, 2024 20:54
@KaruroChori KaruroChori force-pushed the master branch 14 times, most recently from 61bd0a0 to 6f6c830 Compare December 19, 2024 15:25
@KaruroChori KaruroChori force-pushed the master branch 7 times, most recently from 4cf76d6 to ad74fb3 Compare January 23, 2025 10:40
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

Successfully merging this pull request may close these issues.

2 participants