When you run jobs on Blacksmith, all official GitHub and popular third-party cache actions transparently interact with our 4x faster, colocated cache, instead of GitHub’s backend. Zero code changes are required.
    # If it's running on Blacksmith, it will use our cache
    name: Cache Cargo dependencies
    uses: actions/cache@v4
Currently, the Rust sccache and the GitHub Actions cache option in the docker/build-push-action are still redirected to GitHub’s backend. For 40x faster Docker builds, please use our useblacksmith/build-push-action instead. For more information, refer to the Docker builds page.

How it works

GitHub’s cache action stores artifacts in Azure Blob Storage. When your runner isn’t in the same availability zone, downloads are often slow and unreliable. Blacksmith fixes this by storing cache artifacts in the same datacenter as your runners. Our approach removes network latency and almost saturates the NIC. As a result, your downloads complete around 4x faster, with no code changes required.

Branch Protected Caches

When using the Blacksmith transparent cache, each cache entry will be scoped to its branch or tag to ensure cache entries are only accessible to the appropriate workflow runs. This enhances the security of our cache offering by creating a logical boundary between cache artifacts. These access restrictions are consistent with GitHub’s implementation. If you would rather share cache artifacts across branches in a repository, you can toggle this feature off in the settings page of your Blacksmith dashboard.

Opt out

If you’d rather not use our cache for any reason, just let us know by opening a support ticket and we’ll disable it for you.

Pricing

There is no cost for using our cache. Our cache provides 25GB of free storage per repo per week, a substantial increase from GitHub’s 10GB to maximize your cache hits. Like GitHub, our cache also evicts the least recently used cache entries that were last accessed more than 7 days ago. If you’d like us to increase the allowed cache size for your organization, contact us at [email protected].