diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index 026dc28..bffedc0 100644 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -18,7 +18,8 @@ main() { test -f Cargo.lock || cargo generate-lockfile # TODO Update this to build the artifacts that matter to you - cross rustc --bin hello --target $TARGET --release -- -C lto + export CARGO_PROFILE_RELEASE_LTO=true + cross build --bin hello --target $TARGET --release # TODO Update this to package the right artifacts cp target/$TARGET/release/hello $stage/