Skip to content

Commit

Permalink
Fix CI build cache on macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkantor committed Oct 6, 2020
1 parent 485cf53 commit 917d500
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/validate-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo test
# There is a bug with BSD tar on macOS where the first 8MB of the file are
# sometimes all NUL bytes. See https://github.com/actions/cache/issues/403
# and https://github.com/rust-lang/cargo/issues/8603 for some more
# information. An alternative solution here is to install GNU tar, but
# flushing the disk cache seems to work, too.
- run: sudo purge
if: startsWith(matrix.os, 'macos-')

lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 917d500

Please sign in to comment.