Skip to content

Commit d9c5dde

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 23efac8 commit d9c5dde

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
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,9 +93,9 @@ jobs:
9393
command: build
9494
args: --release --target ${{ matrix.target }}
9595

96-
- name: Strip release binary (linux and macos)
97-
if: matrix.os == 'linux' || matrix.os == 'macos'
98-
run: strip "target/${{ matrix.target }}/release/${{ env.PROGRAM_NAME }}"
96+
# - name: Strip release binary (linux and macos)
97+
# if: matrix.os == 'ubuntu' || matrix.os == 'macos'
98+
# run: strip "target/${{ matrix.target }}/release/${{ env.PROGRAM_NAME }}"
9999

100100
- name: Build archive
101101
shell: bash

Cargo.toml

Lines changed: 4 additions & 1 deletion
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)