|
|
|
@ -158,7 +158,9 @@ jobs:
|
|
|
|
|
- name: Strip release binary (linux and macos)
|
|
|
|
|
if: matrix.build == 'linux' || matrix.build == 'macos'
|
|
|
|
|
run: |
|
|
|
|
|
strip "target/${{ matrix.target }}/release/rga" "target/${{ matrix.target }}/release/rga-preproc"
|
|
|
|
|
strip "target/${{ matrix.target }}/release/rga" \
|
|
|
|
|
"target/${{ matrix.target }}/release/rga-preproc" \
|
|
|
|
|
"target/${{ matrix.target }}/release/rga-fzf"
|
|
|
|
|
|
|
|
|
|
- name: Strip release binary (arm)
|
|
|
|
|
if: matrix.build == 'linux-arm'
|
|
|
|
@ -168,7 +170,8 @@ jobs:
|
|
|
|
|
rustembedded/cross:arm-unknown-linux-gnueabihf \
|
|
|
|
|
arm-linux-gnueabihf-strip \
|
|
|
|
|
/target/arm-unknown-linux-gnueabihf/release/rga \
|
|
|
|
|
/target/arm-unknown-linux-gnueabihf/release/rga-preproc
|
|
|
|
|
/target/arm-unknown-linux-gnueabihf/release/rga-preproc \
|
|
|
|
|
/target/arm-unknown-linux-gnueabihf/release/rga-fzf
|
|
|
|
|
|
|
|
|
|
- name: Build archive
|
|
|
|
|
shell: bash
|
|
|
|
@ -182,11 +185,13 @@ jobs:
|
|
|
|
|
if [ "${{ matrix.os }}" = "windows-2019" ]; then
|
|
|
|
|
cp "target/${{ matrix.target }}/release/rga.exe" "$staging/"
|
|
|
|
|
cp "target/${{ matrix.target }}/release/rga-preproc.exe" "$staging/"
|
|
|
|
|
cp "target/${{ matrix.target }}/release/rga-fzf.exe" "$staging/"
|
|
|
|
|
7z a "$staging.zip" "$staging"
|
|
|
|
|
echo "ASSET=$staging.zip" >> $GITHUB_ENV
|
|
|
|
|
else
|
|
|
|
|
cp "target/${{ matrix.target }}/release/rga" "$staging/"
|
|
|
|
|
cp "target/${{ matrix.target }}/release/rga-preproc" "$staging/"
|
|
|
|
|
cp "target/${{ matrix.target }}/release/rga-fzf" "$staging/"
|
|
|
|
|
tar czf "$staging.tar.gz" "$staging"
|
|
|
|
|
echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
|
|
|
|
|
fi
|
|
|
|
|