Skip to main content

Artifact Cache

Accelerate your workflows with the Artifact Cache.

The BuildPulse cache action is a drop-in replacement for GitHub's actions/cache. It stores the cache next to the BuildPulse runners, so restores and saves stay on a short network path.

Usage​

Switching from actions/cache to the BuildPulse cache requires replacing the actions/cache@v4 line in your workflows with buildpulse/cache@v7:

name: Cache dependencies
- uses: actions/cache@v4
+ uses: buildpulse/cache@v7
with:
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
path: ./node_modules

If you're currently using actions/cache/save or actions/cache/restore, update them to buildpulse/cache/save and buildpulse/cache/restore, respectively.

Refer to the GitHub repository for more technical documentation.

Cache Size and Pricing​

250 GB of cache storage is included for each organization. Storage past 250 GB is $0.20 per GB a month, billed on the month's average size. The allowance covers this cache and the Docker build cache together. Entries are kept for 14 days.

The Runners, Cache tab in BuildPulse shows the current size against the allowance.

Credentials​

The runner supplies the cache's credentials, so a workflow does not configure anything.

Two things are worth knowing if your workflow also uses AWS for its own purposes:

  • The cache does not read AWS_ACCESS_KEY_ID or AWS_SECRET_ACCESS_KEY from your job. Running aws-actions/configure-aws-credentials in the same job has no effect on it.
  • If you want the cache to use credentials you control, pass them explicitly with the aws-access-key-id and aws-secret-access-key inputs.

When the cache is not working​

A cache miss is normal and appears as an information line. A cache that cannot be reached is reported as an error annotation on the step, naming what went wrong, and sets the cache-error output. By default the job still succeeds without a cache; set on-cache-error: error to fail the step instead.

For language-specific caching, point buildpulse/cache at the directory your package manager already uses for its cache. The caching strategies guide has worked examples.