Use sccache to speedup workflow selfbuild and test.
Add workflow cache-cleanup.yml to remove unused cache, since GHA does not allow
main branch to use caches created by another branch.
TODO
[ ] Set CARGO_BUILD_TARGET_DIR on workflow using sccache for better cache reuse. (cargo-install would automatically mkdir -p "${CARGO_BUILD_TARGET_DIR})
[ ] Update cache-cleanup.yml from cargo-binstall
[ ] Use sparse index: CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
If this is not good enough, then also cache index:
sccache
to speedup workflowselfbuild
andtest
.cache-cleanup.yml
to remove unused cache, since GHA does not allow main branch to use caches created by another branch.TODO
CARGO_BUILD_TARGET_DIR
on workflow usingsccache
for better cache reuse. (cargo-install
would automaticallymkdir -p "${CARGO_BUILD_TARGET_DIR}
)cache-cleanup.yml
from cargo-binstallCARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
If this is not good enough, then also cache index:sccache-action
with taiki-e/install-action and then setup environments required manually:Signed-off-by: Jiahao XU Jiahao_XU@outlook.com