Hi!
There’s now an action created by @rikh and me that handles this for you if you’re using GitHub Actions: https://github.com/marketplace/actions/cache-julia-artifacts-packages-and-registry
An example workflow that uses it to cache artifacts and packages as part of a CI process might look like this:
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
You can find more info and config options in the readme.