diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c331c5e6..290b0708 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,6 +75,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 tag as the version explicitly; actions/checkout # fetches a shallow clone, so `git describe` may not see it. PHPANTOM_GIT_VERSION: ${{ env.RELEASE_TAG }}