File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}/'
You can’t perform that action at this time.
0 commit comments