Skip to content

Commit

Permalink
Merge pull request #1324 from ehuss/purge
Browse files Browse the repository at this point in the history
Fix macOS CI deploy.
  • Loading branch information
ehuss authored Sep 9, 2020
2 parents cf7663f + 5ebd2c0 commit daf402e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ cd target/release
case $1 in
ubuntu* | macos*)
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
;;
windows*)
Expand Down

0 comments on commit daf402e

Please sign in to comment.