Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Cache zig global_cache to speedup build (#1481)
* CI: Cache zig global_cache to speedup build This can be helpful in two situations: - If `cc` is bumped to a new release, then all the `*-sys` crates will be rebuilt even if their source doesn't change. Caching zig global_cache would avoid expensive rebuilds. - For target `x86_64h-apple-darwin`, it uses build-std which means the rust cache is quite ineffective (only build-dependencies are cached), so we would also need zig global_cache to avoid rebuilding c dependencies in CI. Signed-off-by: Jiahao XU <[email protected]> * Fix missing `shell: bash` Signed-off-by: Jiahao XU <[email protected]> * Fix CI: Create symlink to `zig` Signed-off-by: Jiahao XU <[email protected]> * CI: Fix getting output from prev step in just-setup Signed-off-by: Jiahao XU <[email protected]> * CI: Include job_id `github.job` in zig cache key Signed-off-by: Jiahao XU <[email protected]> --------- Signed-off-by: Jiahao XU <[email protected]>
- Loading branch information