Merge pull request #1324 from ehuss/purge

Fix macOS CI deploy.
This commit is contained in:
Eric Huss 2020-09-09 11:47:00 -07:00 committed by GitHub
commit daf402e1dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,12 @@ cd target/release
case $1 in case $1 in
ubuntu* | macos*) ubuntu* | macos*)
asset="mdbook-$TAG-$host.tar.gz" asset="mdbook-$TAG-$host.tar.gz"
# 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.
sudo /usr/sbin/purge
tar czf ../../$asset mdbook tar czf ../../$asset mdbook
;; ;;
windows*) windows*)