Skip to content

Commit

Permalink
Cargo can handle stripping
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Nov 4, 2023
1 parent 22148ea commit dc73993
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,6 @@ jobs:
if [ "$RUNNER_OS" == "Linux" ]; then
echo "TYPE=tar" >> $GITHUB_ENV
echo "EXTENSION=tar.gz" >> $GITHUB_ENV
for lib in target/${{ matrix.target }}/release/*.so; do
if [ "${{ matrix.target }}" == "aarch64-unknown-linux-gnu" ]; then
aarch64-linux-gnu-strip -s $lib
else
strip -s $lib
fi
done
cp target/${{ matrix.target }}/release/*.so $stage/
fi
if [ "$RUNNER_OS" == "macOS" ]; then
Expand All @@ -145,7 +138,6 @@ jobs:
for lib in target/${{ matrix.target }}/release/*.dylib; do
install_name_tool -id "@rpath/lib${{ env.cratename }}.dylib" $lib
otool -L $lib
strip -ur $lib
done
cp target/${{ matrix.target }}/release/*.dylib $stage/
fi
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rdp"
version = "0.12.8"
version = "0.12.9"
authors = ["Stephan Hügel <urschrei@gmail.com>"]
description = "An FFI wrapper for the Ramer–Douglas–Peucker and Visvalingam-Whyatt algorithms"
readme = "README.md"
Expand Down Expand Up @@ -36,6 +36,7 @@ doc = true
[profile.release]
lto = true
codegen-units = 1
strip = true

[[bench]]
name = "benches"
Expand Down

0 comments on commit dc73993

Please sign in to comment.