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

travis: use ccache #61

Closed
wants to merge 1 commit into from
Closed

Conversation

miri64
Copy link
Member

@miri64 miri64 commented Apr 11, 2019

I'm not sure this works with Docker, but let's give it a try ;-)

@miri64 miri64 requested a review from smlng April 11, 2019 13:49
@miri64
Copy link
Member Author

miri64 commented Apr 11, 2019

(not sure why I can't select @cladmi for this...)

@kaspar030
Copy link
Contributor

now 5 min, before it was 4...

@miri64
Copy link
Member Author

miri64 commented Apr 11, 2019

now 5 min, before it was 4...

With that amount of cache misses this isn't surprising. Should I hit rebuild?

@miri64
Copy link
Member Author

miri64 commented Apr 11, 2019

Mhhhh. I think the results cache entries go to the docker's $HOME/.ccache, as the cache grabbed by Travis seems to be empty :-/

image

@miri64
Copy link
Member Author

miri64 commented Apr 11, 2019

Maybe let's wait for @cladmi to return from his vacation before we merge this ;-)

@miri64
Copy link
Member Author

miri64 commented Apr 11, 2019

(or dismiss it)

@miri64 miri64 force-pushed the travis/enh/ccache branch from bf63cb7 to 52e1f08 Compare April 11, 2019 15:49
@miri64 miri64 force-pushed the travis/enh/ccache branch from 52e1f08 to 1e7b55e Compare April 15, 2019 09:03
@cladmi
Copy link
Contributor

cladmi commented Apr 24, 2019

There is indeed a limitation that https://github.com/RIOT-OS/RIOT/blob/59b4dcffed6b8f32e6fba01e262e941d7413f7ca/makefiles/docker.inc.mk currently does not map 'CCACHE_DIR' directory or exports the 'CCACHE' variable to the docker container.

You can see it in the build output that no mapping is done for it:

https://travis-ci.com/RIOT-OS/Tutorials/jobs/192912816#L476-L494
(CC=gcc is passed to docker, fortunately we have CC = $(PREFIX)gcc without at ?=)

Also, for travis it looks like it is using the ${HOME}/.casher as a ccache (or cache base ?) directory:

https://travis-ci.com/RIOT-OS/Tutorials/jobs/192912816#L451-L456

So would need additional configuration.

@miri64
Copy link
Member Author

miri64 commented Apr 24, 2019

Also, for travis it looks like it is using the ${HOME}/.casher as a ccache (or cache base ?) directory:

https://travis-ci.com/RIOT-OS/Tutorials/jobs/192912816#L451-L456

It does not look to me like that. The variable you are referring to is called CASHER_DIR. From that I'm not sure it is the output of ccache necessarily. Maybe it is just were the produced cache tar is stored for pick-up?

@miri64
Copy link
Member Author

miri64 commented Apr 24, 2019

Yupp, according to the doc the ccache output shoulds till go to $HOME/.ccache.

@cladmi
Copy link
Contributor

cladmi commented Apr 24, 2019

Yupp, according to the doc the ccache output shoulds till go to $HOME/.ccache.

Ok thanks for checking.

@miri64
Copy link
Member Author

miri64 commented Nov 30, 2023

Since the new Github actions are using the Docker image (which uses ccache), we can close this one.

@miri64 miri64 closed this Nov 30, 2023
@miri64 miri64 deleted the travis/enh/ccache branch November 30, 2023 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants