diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04721e19f299e..75b4afaaaace0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -149,7 +149,7 @@ jobs: run: | echo "::set-output name=rustc::$(rustc --version)" - name: Build Node - run: cargo build --release --verbose --all + run: RUSTFLAGS="-C opt-level=3" cargo build --release --verbose --all # We determine whether there are unmodified Cargo.lock files by: # 1. Asking git for a list of all modified files # 2. Using grep to reduce the list to only Cargo.lock files diff --git a/Cargo.toml b/Cargo.toml index 86a1c0480e129..ba5755c5cea01 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,4 @@ members = [ [profile.release] panic = 'unwind' +opt-level = 0