Skip to content

Commit

Permalink
ci: perf build release-lto on release
Browse files Browse the repository at this point in the history
  • Loading branch information
de-sh committed Dec 17, 2024
1 parent 386a662 commit 2fd82d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
with:
use-cross: true
command: build
args: --release --target ${{matrix.target}}
args: --profile release-lto --target ${{matrix.target}}

- name: Rename binary
run: |
mv target/${{ matrix.target }}/release/parseable Parseable_OSS_${{ matrix.target }}
mv target/${{ matrix.target }}/release-lto/parseable Parseable_OSS_${{ matrix.target }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
Expand Down Expand Up @@ -82,11 +82,11 @@ jobs:
override: true

- name: Build
run: cargo build --all --release --target x86_64-pc-windows-msvc
run: cargo build --all --profile release-lto --target x86_64-pc-windows-msvc

- name: Rename binary
run: |
mv target/x86_64-pc-windows-msvc/release/PARSEABLE.exe Parseable_OSS_x86_64-pc-windows-msvc.exe
mv target/x86_64-pc-windows-msvc/release-lto/PARSEABLE.exe Parseable_OSS_x86_64-pc-windows-msvc.exe
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
Expand Down Expand Up @@ -135,12 +135,12 @@ jobs:

- name: Build
run: |
cargo build --release --target ${{ matrix.target }}
strip target/${{ matrix.target }}/release/Parseable
cargo build --profile release-lto --target ${{ matrix.target }}
strip target/${{ matrix.target }}/release-lto/Parseable
- name: Rename binary
run: |
mv target/${{ matrix.target }}/release/Parseable Parseable_OSS_${{ matrix.target }}
mv target/${{ matrix.target }}/release-lto/Parseable Parseable_OSS_${{ matrix.target }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
Expand Down
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,8 @@ assets-sha1 = "9d5a45f204d709a2dd96f6a5e0b21b3834ee0e36"

[features]
debug = []

[profile.release-lto]
inherits = "release"
lto = "fat"
codegen-units = 1

0 comments on commit 2fd82d8

Please sign in to comment.