Include some debug info in release, but compress it for prebuilds

This commit is contained in:
Félix Saparelli 2022-01-13 01:02:22 +13:00
parent 0936a68355
commit 23a3482361
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
2 changed files with 4 additions and 2 deletions

View File

@ -50,7 +50,7 @@ jobs:
target: aarch64-unknown-linux-gnu
cross: true
experimental: false
- name: linux-arm64-musl
os: ubuntu-latest
target: aarch64-unknown-linux-musl
@ -139,7 +139,7 @@ jobs:
ext=""
[[ "${{ matrix.name }}" == windows-* ]] && ext=".exe"
bin="target/${{ matrix.target }}/release/watchexec${ext}"
strip "$bin" || true
objcopy --compress-debug-sections "$bin" || strip "$bin" || true
version=$(cat VERSION)
dst="watchexec-${version}-${{ matrix.target }}"

View File

@ -67,6 +67,8 @@ insta = "1.7.1"
[features]
dev-console = ["console-subscriber"]
[profile.release]
debug = 1 # for stack traces
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/cli-v{ version }/watchexec-{ version }-{ target }.tar.xz"
bin-dir = "watchexec-{ version }-{ target }/{ bin }{ format }"