File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ jobs:
119119 if : ${{ contains(matrix.cargo_targets, '-musl') }}
120120 run : sudo apt-get install musl-tools -y
121121 - name : Build release binary
122+ shell : bash
122123 run : |
123124 if [ "${{ matrix.name }}" = "ubuntu-arm-latest" ]; then
124125 export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc
@@ -131,12 +132,12 @@ jobs:
131132 staging="${{ env.BIN_NAME }}-${{ needs.create-release.outputs.release_version }}-${{ matrix.target }}"
132133 mkdir -p "$staging"
133134 if [ "${{ matrix.os }}" = "windows-latest" ]; then
134- cp "target/${{ matrix.cargo_targets }}/${{ env.BIN_NAME }}.exe" "$staging/"
135+ cp "target/${{ matrix.cargo_targets }}/release/ ${{ env.BIN_NAME }}.exe" "$staging/"
135136 cd "$staging"
136137 7z a "../$staging.zip" .
137138 echo "ASSET=$staging.zip" >> $GITHUB_ENV
138139 else
139- cp "target/${{ matrix.cargo_targets }}/${{ env.BIN_NAME }}" "$staging/"
140+ cp "target/${{ matrix.cargo_targets }}/release/ ${{ env.BIN_NAME }}" "$staging/"
140141 tar czf "$staging.tar.gz" -C "$staging" .
141142 echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
142143 fi
You can’t perform that action at this time.
0 commit comments