Skip to content

Commit

Permalink
Try using cargo's built-in stripping feature.
Browse files Browse the repository at this point in the history
This feature should be stable in 1.58

rust-lang/cargo#10088
  • Loading branch information
AustinWise committed Jan 17, 2022
1 parent 7eb8916 commit 13bb0f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: nightly
override: true
target: ${{ matrix.target }}

Expand All @@ -93,10 +93,6 @@ jobs:
command: build
args: --release --target ${{ matrix.target }}

- name: Strip release binary (macos)
if: matrix.os == 'macos'
run: strip "target/${{ matrix.target }}/release/${{ env.PROGRAM_NAME }}"

- name: Build archive
shell: bash
run: |
Expand Down
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cargo-features = ["strip"]

[package]
name = "smeagol-wiki"
version = "0.1.2"
Expand All @@ -7,7 +9,8 @@ license = "MIT"
homepage = "https://github.com/AustinWise/smeagol/"
repository = "https://github.com/AustinWise/smeagol/"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
strip = "symbols"

[dependencies]
askama = "0.11"
Expand Down

0 comments on commit 13bb0f5

Please sign in to comment.