Skip to content

Commit

Permalink
scm: Optimize binary sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
mochalins committed Nov 20, 2022
1 parent 4b9cd1f commit 86ab72f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
continue-on-error: true
run: rm ${{github.workspace}}/${{github.ref_name}}/${{matrix.os}}/release/gidc.pdb

- name: Strip
run: strip ${{github.workspace}}/${{github.ref_name}}/${{matrix.os}}/release/gid*

- name: Compress
run: 7z a -tzip ${{github.workspace}}/bin/${{github.ref_name}}-${{matrix.os}}.zip ${{github.workspace}}/${{github.ref_name}}/${{matrix.os}}/release/gid*

Expand Down
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ readme = "README.md"
repository = "https://github.com/sushigiri/gid"
default-run = "gid"

[profile.release]
strip = "symbols"
lto = "fat"
panic = "abort"
codegen-units = 1

[[bin]]
name = "gid"
path = "src/gid.rs"
Expand Down

0 comments on commit 86ab72f

Please sign in to comment.