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

Support local and remote build cache #2371

Closed
waruqi opened this issue May 21, 2022 · 0 comments
Closed

Support local and remote build cache #2371

waruqi opened this issue May 21, 2022 · 0 comments

Comments

@waruqi
Copy link
Member

waruqi commented May 21, 2022

Is your feature request related to a problem? Please describe.

Local cache

It will be enabled by default.

see #2361

disable cache

$ xmake f --ccache=n
$ xmake

Remote cache

Add configuration

$ cat ~/.xmake/service/server.conf
{
    remote_cache = {
        listen = "0.0.0.0:9692",
        workdir = "/Users/ruki/.xmake/service/server/remote_cache"
    },
    tokens = {
        "caefa7cf0a036e2364fa349dc39b4127"
    }
}
$ cat ~/.xmake/service/client.conf
{
    remote_cache = {
        connect = "127.0.0.1:9692",
        token = "caefa7cf0a036e2364fa349dc39b4127"
    }
}

Start remote server

$ xmake service -vD
<remote_cache_server>: listening 0.0.0.0:9692 ..

Connect remote cache server

$ xmake service --connect --cache
<remote_cache_client>: connect 127.0.0.1:9692 ..
<remote_cache_client>: connected!

Build project with local/remote cache

$ xmake
@waruqi waruqi added this to the v2.6.6 milestone May 21, 2022
@waruqi waruqi closed this as completed May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant