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

Ccache and Travis Cache #2782

Closed
flippmoke opened this issue Apr 28, 2015 · 5 comments
Closed

Ccache and Travis Cache #2782

flippmoke opened this issue Apr 28, 2015 · 5 comments
Labels
ci resolved? awaiting confirmation that the issue has been resolved

Comments

@flippmoke
Copy link
Member

@springmeyer is travis cache different for different compilers and different operating systems? If not we should change the ccache directory with export CCACHE_DIR=path per different environment.

@springmeyer
Copy link
Member

Its per-compiler. You can look at the logs and see this:

$ export CASHER_DIR=$HOME/.casher
$ Installing caching utilities
attempting to download cache archive
fetching master/cache--compiler-clang.tbz
found cache
adding /home/travis/.ccache to cache

So, yeah, we should modify the cache directory. BTW, I noticed https://github.com/urho3d/Urho3D/blob/master/.travis.yml which is someone who really understands travis and there are likely some gems there.

@springmeyer
Copy link
Member

landing here because OSX does not support caching (travis-ci/travis-ci#4011), but we should try to manually cook something up to be able to use ccache on osx.

@lightmare
Copy link
Contributor

I think this can be closed. It's been established that separating caches via compiler setting in .travis.yml is clearly better than having shared cache for all jobs with separate subdirectories.

@lightmare lightmare added ci resolved? awaiting confirmation that the issue has been resolved labels Feb 22, 2017
@lightmare
Copy link
Contributor

Travis now automatically separates caches by OS, distro, and visible ENV vars: https://docs.travis-ci.com/user/caching/#Caches-and-build-matrices
So even the compiler hack isn't necessary anymore.

@springmeyer
Copy link
Member

👍 thanks @lightmare

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci resolved? awaiting confirmation that the issue has been resolved
Projects
None yet
Development

No branches or pull requests

3 participants