Skip to content

add ccache by default for GH actions? #20

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

Open
1 task
jakoch opened this issue Mar 15, 2025 · 0 comments
Open
1 task

add ccache by default for GH actions? #20

jakoch opened this issue Mar 15, 2025 · 0 comments

Comments

@jakoch
Copy link
Owner

jakoch commented Mar 15, 2025

When cpp-devbox is used as a build container on GHA:

VOLUME /ccache_folder
ENV CCACHE_DIR=/ccache_folder \
    CCACHE_COMPRESS=TRUE \
    CCACHE_COMPRESSLEVEL=5 \
    CCACHE_MAXSIZE=500M
  • then, a user would need to setup the ccache_folder handling in their own GHA workflow like this:
    • mkdir ccache_folder
    • mount it during docker run of the container
      • docker run --env=xy -v pwd/ccache_folder:/ccache_folder /user/project/src make configure
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

1 participant