0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-23 15:50:11 -05:00

ci: add workaround for MacOS + Cargo + Github Actions cache bug (#462)

This commit is contained in:
Bert Belder 2020-09-08 00:42:43 +02:00
parent f15a250221
commit 81f7a653b2
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -114,6 +114,26 @@ jobs:
restore-keys:
${{ matrix.config.target }}-${{ matrix.config.variant }}-
# It seems that the 'target' directory does not always get restored
# from cache correctly on MacOS. In the build log we see the following:
#
# Fresh serde_derive v1.0.115
#
# But a little while after that Cargo aborts because 'serde_derive' is
# now nowhere to be found. We're not the only ones experiencing this,
# see https://github.com/actions-rs/cargo/issues/111.
#
# error[E0463]: can't find crate for `serde_derive`
# ##[error] --> /Users/runner/.cargo/registry/src/github.com-
# | 1ecc6299db9ec823/serde-1.0.115/src/lib.rs:285:1
# |
# 285 | extern crate serde_derive;
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
- name: Work around MacOS + Cargo + Github Actions cache bug
if: runner.os == 'macOS'
run: cargo clean -p serde_derive
- name: Install and start sccache
shell: pwsh
env: