Skip to content

Commit

Permalink
Use llvm-strip
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed May 3, 2024
1 parent 405e1fa commit 1393a53
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ jobs:
- name: Release build
run: cargo build --release --target ${{ matrix.target }}
- name: Package
if: false
shell: bash
run: |
name=cargo-deny
Expand All @@ -177,7 +176,13 @@ jobs:
mkdir "$release_name"
if [ "${{ matrix.target }}" != "x86_64-pc-windows-msvc" ]; then
strip "target/${{ matrix.target }}/release/${{ matrix.bin }}"
if [ "${{ matrix.os }}" == "ubuntu-22.04" ]; then
strip="llvm-strip"
else
strip="strip"
fi
$strip "target/${{ matrix.target }}/release/${{ matrix.bin }}"
fi
cp "target/${{ matrix.target }}/release/${{ matrix.bin }}" "$release_name/"
Expand Down

0 comments on commit 1393a53

Please sign in to comment.