Skip to content

Commit

Permalink
strip linux and mac binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
prabirshrestha committed Jun 16, 2020
1 parent e622fc0 commit 2d9326e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,19 @@ jobs:
command: build
args: --release --verbose --locked --all --target ${{ matrix.target }}

- name: Strip release binary (linux and macos)
if: matrix.build == 'linux' || matrix.build == 'macos'
run: strip "target/${{ matrix.target }}/release/${{ env.PKG_NAME }}"

- name: Strip release binary (arm)
if: matrix.build == 'linux-arm'
run: |
docker run --rm -v \
"$PWD/target:/target:Z" \
rustembedded/cross:${{ matrix.target }} \
arm-linux-gnueabihf-strip \
/target/${{ matrix.target }}/release/${{ env.PKG_NAME }}
- name: Build archive
shell: bash
run: |
Expand Down

0 comments on commit 2d9326e

Please sign in to comment.