Skip to content

Commit e5e7a2f

Browse files
committed
Add some profile.release options to optimize the resulting binary size
I took these from https://github.com/johnthagen/min-sized-rust.
1 parent 909d816 commit e5e7a2f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ jobs:
117117
target: ${{ matrix.platform.target }}
118118
toolchain: ${{ matrix.toolchain }}
119119
args: "--locked --release"
120-
strip: true
121120
- name: Publish artifacts and release
122121
uses: houseabsolute/actions-rust-release@v0
123122
with:

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ pre-build = [
4141
"rm base.tar.xz",
4242
"rm -rf /tmp/netbsd",
4343
]
44+
45+
[profile.release]
46+
codegen-units = 1
47+
lto = true
48+
strip = true

0 commit comments

Comments
 (0)