Skip to content

Commit 8c0276e

Browse files
committed
set strip params for osx
Signed-off-by: Mimoja <git@mimoja.de>
1 parent 9fb12a6 commit 8c0276e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/cicd.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,11 @@ jobs:
166166
echo set-output name=CARGO_USE_CROSS::${CARGO_USE_CROSS:-<empty>/false}
167167
echo ::set-output name=CARGO_USE_CROSS::${CARGO_USE_CROSS}
168168
# * strip executable?
169-
STRIP="strip" ; case ${{ matrix.job.target }} in arm-unknown-linux-gnueabihf) STRIP="arm-linux-gnueabihf-strip" ;; *-pc-windows-msvc) STRIP="" ;; *-apple-darwin) STRIP="strip -sX" ;; esac;
169+
STRIP="strip" ; STRIP_PARAMS="" ; case ${{ matrix.job.target }} in arm-unknown-linux-gnueabihf) STRIP="arm-linux-gnueabihf-strip" ;; *-pc-windows-msvc) STRIP="" ;; *-apple-darwin) STRIP_PARAMS="-u" ;; esac;
170170
echo set-output name=STRIP::${STRIP}
171171
echo ::set-output name=STRIP::${STRIP}
172+
echo set-output name=STRIP_PARAMS::${STRIP_PARAMS}
173+
echo ::set-output name=STRIP_PARAMS::${STRIP_PARAMS}
172174
- name: Create all needed build/work directories
173175
shell: bash
174176
run: |
@@ -207,7 +209,7 @@ jobs:
207209
# binary
208210
cp 'target/${{ matrix.job.target }}/release/${{ steps.vars.outputs.LIB_FNAME }}' '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/'
209211
# `strip` binary (if needed)
210-
if [ -n "${{ steps.vars.outputs.STRIP }}" ]; then "${{ steps.vars.outputs.STRIP }}" '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/${{ steps.vars.outputs.LIB_FNAME }}' ; fi
212+
if [ -n "${{ steps.vars.outputs.STRIP }}" ]; then "${{ steps.vars.outputs.STRIP }}" ${{ steps.vars.outputs.STRIP_PARAMS }} '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/${{ steps.vars.outputs.LIB_FNAME }}' ; fi
211213
# README and LICENSE
212214
cp README.md '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/'
213215
cp LICENSE '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/'

0 commit comments

Comments
 (0)