diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9394645a35..09e85c46da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -104,7 +104,7 @@ jobs: echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV - name: Build binaries - run: cargo build --release --bins --target ${{ matrix.job.target }} + run: cargo build --profile performance --bins --target ${{ matrix.job.target }} - name: Archive binaries id: artifacts diff --git a/Cargo.toml b/Cargo.toml index b5a19cedad..d40f77f7b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,6 +58,7 @@ version = "1.0.0-rc.0" [profile.performance] codegen-units = 1 +opt-level = "z" incremental = false inherits = "release" lto = "fat"