Skip to content

Commit

Permalink
ci: add workaround for MacOS + Cargo + Github Actions cache bug (#7898)
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Oct 9, 2020
1 parent f911dc3 commit a96a386
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -119,6 +119,25 @@ jobs:
restore-keys: |
deno-${{ matrix.os }}-${{ matrix.kind }}-
# 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: lint.py
if: matrix.kind == 'lint'
run: python ./tools/lint.py
Expand Down

0 comments on commit a96a386

Please sign in to comment.