Skip to main content
Plugins / Sccache

Sccache

by Sebastian Martinez <sebastian@rhizoma.dev>

A Woodpecker CI plugin that integrates sccache with your CI/CD pipeline


plugin-sccache

This plugin allows you to cache the results of your builds using sccache, a distributed compiler cache. It integrates seamlessly with your CI/CD pipeline, ensuring faster builds and reduced compilation times.

Usage

The plugin relies on the sccache binary to manage the caching process. Ensure that sccache is installed and available in your CI/CD environment or use the provided volume in your step with:

    volumes:
      - sccache:/sccache_data

Features

  • Distributed Caching: Leverage the power of sccache to cache compiled artifacts across multiple machines.
  • Seamless Integration: Easily integrate sccache into your existing CI/CD workflow without modifying your build scripts.
  • Performance Boost: Reduce build times by reusing previously compiled artifacts, saving time and resources.

Settings

Parameter Description Default
s3-bucket S3 bucket name
s3-endpoint S3 compatible endpoint URL
s3-access-key S3 access key
s3-secret-key S3 secret key
s3-key-prefix S3 bucket key prefix sccache
s3-region AWS region auto
s3-use-ssl Set to true if the endpoint requires HTTPS/TLS true
s3-server-side-encryption Enable server-side encryption with SSE-S3 true
s3-enable-virtual-host Enable if you are using a custom endpoint that supports virtual host style addressing false
save-if Set readonly access to the cache true
log-level Sccache log level info