julia-actions/Cache Julia artifacts, packages and registry

Cache Julia using actions/cache

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
cache-nameThe cache key prefix. The key body automatically includes the OS and, unless disabled, the matrix vars. Include any other parameters/details in this prefix to ensure one unique cache key per concurrent job type.julia-cache;workflow=${{ github.workflow }};job=${{ github.job }}
include-matrixWhether to include the matrix values when constructing the cache key.true
gcp-bucketGoogle Cloud Storage bucket to use for caching (e.g., 'my-cache-bucket'). If provided, this is used instead of the default Actions cache.""
depotPath to a Julia depot directory where cached data will be saved to and restored from.""
cache-artifactsWhether to cache the depot's `artifacts` directory.true
cache-packagesWhether to cache the depot's `packages` directory.true
cache-registriesWhether to cache the depot's `registries` directory.true
cache-compiledWhether to cache the depot's `compiled` directory.true
cache-scratchspacesWhether to cache the depot's `scratchspaces` directory.true
cache-logsWhether to cache the depot's `logs` directory. This helps automatic `Pkg.gc()` keep the cache size down.true
delete-old-cachesWhether to delete old caches for the given key.true
tokenA GitHub PAT. Requires `repo` scope to enable the deletion of old caches.${{ github.token }}
save-alwaysSave the cache even if the job fails. Set to false to only save cache on successful jobs.true
_matrix-jsonInternal: JSON representation of the matrix context${{ toJSON(matrix) }}
_runner-osInternal: Runner OS${{ runner.os }}
_github-run-idInternal: GitHub run ID${{ github.run_id }}
_github-run-attemptInternal: GitHub run attempt${{ github.run_attempt }}
_github-repositoryInternal: GitHub repository${{ github.repository }}
_github-refInternal: GitHub ref${{ github.ref }}
_github-event-repository-default-branchInternal: Default branch of the repository${{ github.event.repository.default_branch }}
_job-statusInternal: Job status for post step${{ job.status }}
namedescription
cache-hitA boolean value to indicate an exact match was found for the primary key. Returns "" when the key is new. Forwarded from actions/cache.
cache-pathsThe paths that were cached.
cache-keyThe full cache key used.