This repository provides GitHub Actions which enables projects to cache the compiled ouotput using sccache.
- name: Configure sccache
uses: visvirial/sccache-action@v1
with:
# Optional
cache-key: sccache-ubuntu-latest
# Optional, whether or not saving the cache
cache-save: true
# Optional whether or not updating cache when hit
cache-update: true
# Optional, e.g. v0.3.0
release-name: latest
# Optional
arch: x86_64-unknown-linux-musl
- The
release-name
parameter is the version name listed in sccache's release page. - The
arch
parameter is the string included in the binary release.tar.gz
. For ubuntu, use "x86_64-unknown-linux-musl".