Skip to content

Commit

Permalink
Use Cargo's strip option to strip the release binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelc committed Jan 15, 2024
1 parent af691f1 commit 464f25f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ jobs:
- name: Build
run: cargo build --release --target ${{ matrix.target }}

- name: Strip release binary
if: runner.os == 'Linux' || runner.os == 'macOS'
run: strip "target/${{ matrix.target }}/release/modiom"

- name: Package
id: package
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ toml = "0.8.8"
version = "0.9.1"
default-features = false
features = ["rustls-tls"]

[profile.release]
strip = true

0 comments on commit 464f25f

Please sign in to comment.