Skip to content

Commit 1562a8f

Browse files
committed
Try using cargo's built-in stripping feature.
This feature should be stable in 1.58 rust-lang/cargo#10088
1 parent 7eb8916 commit 1562a8f

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/release.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ name: release
99
on:
1010
push:
1111
# Enable when testing release infrastructure on a branch.
12-
# branches:
13-
# - ci_testing
12+
branches:
13+
- ci_testing
1414
tags:
1515
- "[0-9]+.[0-9]+.[0-9]+"
1616
jobs:
@@ -83,7 +83,7 @@ jobs:
8383
- name: Install Rust
8484
uses: actions-rs/toolchain@v1
8585
with:
86-
toolchain: stable
86+
toolchain: nightly
8787
override: true
8888
target: ${{ matrix.target }}
8989

@@ -93,10 +93,6 @@ jobs:
9393
command: build
9494
args: --release --target ${{ matrix.target }}
9595

96-
- name: Strip release binary (macos)
97-
if: matrix.os == 'macos'
98-
run: strip "target/${{ matrix.target }}/release/${{ env.PROGRAM_NAME }}"
99-
10096
- name: Build archive
10197
shell: bash
10298
run: |

Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cargo-features = ["strip"]
2+
13
[package]
24
name = "smeagol-wiki"
35
version = "0.1.2"
@@ -7,7 +9,8 @@ license = "MIT"
79
homepage = "https://github.com/AustinWise/smeagol/"
810
repository = "https://github.com/AustinWise/smeagol/"
911

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

1215
[dependencies]
1316
askama = "0.11"

0 commit comments

Comments
 (0)