diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index ff2a3452..e3beb1f1 100644 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -15,6 +15,9 @@ main() { ;; esac + # This will slow down the build, but is necessary to not run out of disk space + cargo clean + cargo rustc --bin mdbook --target $TARGET --release -- -C lto cp target/$TARGET/release/mdbook $stage/