diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e90634f..80aa7823 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,6 +62,9 @@ jobs: - name: Build env: + RUSTFLAGS: ${{ startsWith(matrix.target, 'x86_64') && '-C target-cpu=x86-64-v3' || '' }} + CARGO_PROFILE_RELEASE_OPT_LEVEL: "3" + CARGO_PROFILE_RELEASE_LTO: "thin" # Embed the release tag as the version. The tag itself does # not exist until the release is published, so `git describe` # cannot produce it while building a draft's assets.