From 6be41291ad0d51208414edcb1362d6a525f5a3ac Mon Sep 17 00:00:00 2001 From: hatoo Date: Fri, 10 Jan 2025 20:41:40 +0900 Subject: [PATCH] Use optimized profile for Relase CI --- .github/workflows/release.yml | 4 ++-- Cargo.toml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7fd73c65..53e43406 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,12 +49,12 @@ jobs: with: command: build target: ${{ matrix.target }} - args: --release --target ${{ matrix.target }} --locked --no-default-features --features rustls ${{ matrix.additional_args }} + args: --profile release-ci --target ${{ matrix.target }} --locked --no-default-features --features rustls ${{ matrix.additional_args }} strip: true - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: target/${{ matrix.target }}/release/${{ matrix.artifact_name }} + file: target/${{ matrix.target }}/release-ci/${{ matrix.artifact_name }} asset_name: ${{ matrix.release_name }} tag: ${{ github.ref }} diff --git a/Cargo.toml b/Cargo.toml index 9cec4a26..722b6f6a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -107,3 +107,6 @@ lto = true debug = false incremental = false overflow-checks = false + +[profile.release-ci] +inherits = "pgo"