Skip to content

Commit

Permalink
Merge pull request #656 from hatoo/release-profile
Browse files Browse the repository at this point in the history
Use optimized profile for Release CI
  • Loading branch information
hatoo authored Jan 10, 2025
2 parents e4aa761 + 6be4129 commit cbf7951
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,6 @@ lto = true
debug = false
incremental = false
overflow-checks = false

[profile.release-ci]
inherits = "pgo"

0 comments on commit cbf7951

Please sign in to comment.