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
GitHub Actions (macOS): persist ccache's cache between runs #457
Conversation
0fe42c4
to
e88a1de
Compare
e88a1de
to
b785c86
Compare
on macOS: mythtv/.github/workflows/buildmaster.yml Lines 31 to 36 in 9175b16
Line 34 is wrong for macOS. Waiting for the second Action to complete. |
The default is different from linux, so create a separate task for macOS.
The other debugging commands I added weren't really necessary. ccache terminates with the -V option before executing subsequent options, so put it last. -p was unnecessary since -s shows the cache directory.
If a macOS user has installed ccache via MacPorts, your assumption will be invalid--the cache_dir will be ~/.ccache. I'm not sure where Homebrew or Fink place the cache. I think the correct thing to do is to ask ccache:
Craig |
@ctreleaven This only effects the GitHub Actions builds, not anyone working on a checked out copy on their local machine. The GitHub builders use Homebrew: mythtv/.github/workflows/buildmaster.yml Line 52 in 630afc1
This was the easiest way I saw to enable ccache on the macOS GitHub Actions builders. |
Force directory instead of using default install directory, which may differ depending on the package used. CCACHE_DIR=~/.ccache doesn't work.
1e8d501
to
205c98d
Compare
by removing trailing whitespace
I decided to force the use of |
ccache does not appear to work on the macOS actions. I will attempt to enable and verify it on the macOS workflows.