Skip to content

Commit daf402e

Browse files
authored
Merge pull request #1324 from ehuss/purge
Fix macOS CI deploy.
2 parents cf7663f + 5ebd2c0 commit daf402e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ci/make-release.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ cd target/release
1717
case $1 in
1818
ubuntu* | macos*)
1919
asset="mdbook-$TAG-$host.tar.gz"
20+
# There is a bug with BSD tar on macOS where the first 8MB of the file are
21+
# sometimes all NUL bytes. See https://github.com/actions/cache/issues/403
22+
# and https://github.com/rust-lang/cargo/issues/8603 for some more
23+
# information. An alternative solution here is to install GNU tar, but
24+
# flushing the disk cache seems to work, too.
25+
sudo /usr/sbin/purge
2026
tar czf ../../$asset mdbook
2127
;;
2228
windows*)

0 commit comments

Comments
 (0)