Skip to content

Commit

Permalink
tweak: Include debug symbols in the generated artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Apr 24, 2024
1 parent 953bc93 commit 59956f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
run_on: ubuntu-latest
os: linux
target: x86_64-unknown-linux-gnu
strip: strip --strip-debug
setup: |
Invoke-WebRequest -OutFile /tmp/protoc.zip -Uri https://github.com/protocolbuffers/protobuf/releases/download/v3.20.2/protoc-3.20.2-linux-x86_64.zip
Expand-Archive /tmp/protoc.zip -DestinationPath ../tools
Expand Down Expand Up @@ -87,7 +86,6 @@ jobs:
Invoke-WebRequest -OutFile /tmp/protoc.zip -Uri https://github.com/protocolbuffers/protobuf/releases/download/v3.20.2/protoc-3.20.2-linux-x86_64.zip
Expand-Archive /tmp/protoc.zip -DestinationPath ../tools
Add-Content -Path $env:GITHUB_PATH -Value "$((get-item ./).parent.fullname)/tools/bin"
strip: aarch64-linux-gnu-strip --strip-debug
flags: --features openssl_src

# Apple MacOS builds
Expand Down Expand Up @@ -135,11 +133,6 @@ jobs:
command: build
args: --release --target ${{ matrix.target }} ${{ matrix.flags }}

- name: Strip Debug Symbols
run: |
${{ matrix.strip }} target/${{ matrix.target }}/release/grey${{ matrix.extension }}
if: matrix.strip

- name: Upload GitHub Release Artifacts
uses: SierraSoftworks/[email protected]
with:
Expand Down
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ trust-dns-resolver = { version = "0.23", features = ["tokio-runtime"] }
[features]
default = []
pure_tests = []
openssl_src = ["dep:openssl-sys"]
openssl_src = ["dep:openssl-sys"]

[profile.release]
debug = "limited"

0 comments on commit 59956f0

Please sign in to comment.