cache sccache setup configures sccache to use Namespace’s high-performance remote caching and outputs the required environment variables.
Usage
Example output
Run the setup command to print the required environment variables:Output
Example in a local shell
1
Export the configuration
Export the generated
KEY=value configuration into your shell:2
Start sccache
Start the sccache server with the exported configuration:
Example in GitHub Actions
1
Configure the environment
Append the generated configuration to
$GITHUB_ENV in one workflow step:2
Start sccache
Start the sccache server in a subsequent workflow step:
Options
—output, -o <format>
Output format. One ofplain 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.