Blacksmith automatically caches your dependencies to speed up your workflows
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.off
in the settings page of your Blacksmith dashboard.
Actions cache v1 (Deprecated)
actions/cache
to the Blacksmith cache is a one line change. Simply replace the actions/cache@v3
line in your workflow files with useblacksmith/cache@v5
.actions/cache/save
and actions/cache/restore
, you can migrate them to useblacksmith/cache/save
and useblacksmith/cache/restore
respectively.For more information, refer to GitHub’s official documentation, since the Blacksmith cache is fully compatible with GitHub’s cache.useblacksmith/cache
, the Blacksmith cache also provides drop-in replacements for GitHub’s official actions/setup-*
actions.
These replacements have the same semantics as the official setup actions, but they are backed by Blacksmith’s much faster and more reliable cache.README
of each setup action for detailed instructions on how to configure them.
For languages that we don’t have a setup action for, you can still leverage the useblacksmith/cache
action to cache dependencies by following these guidelines.Some languages have popular cache actions that are not maintained by GitHub. The Blacksmith cache offers drop-in replacements for these actions too so that you can leverage our faster cache.Swatinem/rust-cache@v2
. Once you make the changes outlined below, you can configure the action using these guidelines.env
section to your container definition as shown below.tar
installed, you will need to install it as a step inside the container. tar
is required to extract
the artifacts downloaded from Blacksmith’s cache.401
error or an Unauthenticated
error when restoring or saving to the Blacksmith cache.