nsc cache sccache setup
Set up a remote sccache cache.
cache sccache setup configures sccache to use Namespace's high-performance remote caching and outputs the required environment variables.
Usage
nsc cache sccache setupExample
$ nsc cache sccache setup
SCCACHE_WEBDAV_ENDPOINT=https://cache.namespace.so:8080
SCCACHE_WEBDAV_KEY_PREFIX=sccache/my-cache/
SCCACHE_WEBDAV_TOKEN=scc_token_abc123...The output is formatted as KEY=value lines so it can be:
- exported in a shell with
export $(nsc cache sccache setup), and - appended to
$GITHUB_ENVin GitHub Actions withnsc cache sccache setup >> "$GITHUB_ENV".
To use these in your build:
$ export $(nsc cache sccache setup)
$ sccache --start-serverOptions
--output, -o <format>
Output format. One of plain or json. Default is plain.
--cache_name <name>
A name for the cache.
--site <site>
Site preference (e.g. iad, fra). If not set, determined automatically.

