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 ef36153 commit 8960b5d
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/debug
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 8960b5d

Please sign in to comment.