Clean up unnecessary Cargo artifacts to improve CI caching performance
In GitHub Actions:
# jobs.<job_name>.steps:
- name: Install cargo-ci-cache-clean
uses: taiki-e/install-action@v2
with:
tool: cargo-ci-cache-clean
- name: CI cache clean
run: cargo-ci-cache-clean
With cargo-binstall
:
$ cargo binstall cargo-ci-cache-clean
From source:
$ cargo install cargo-ci-cache-clean
cargo-ci-cache-clean