Fix incorrect output path in release pipeline

When using the --target flag, Cargo will output binaries to a different
folder: target/{TARGET}/release/reshape.
This commit is contained in:
fabianlindfors 2022-01-04 15:50:27 +01:00
parent 64d05dad46
commit 3c977cb299

View File

@ -58,7 +58,7 @@ jobs:
args: --release --target ${{ matrix.target }}
use-cross: ${{ matrix.use-cross }}
- name: Rename binary
run: mv target/release/reshape ./reshape-${{ matrix.file-name }}
run: mv target/${{ matrix.target }}/release/reshape ./reshape-${{ matrix.file-name }}
- name: Upload binary to release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}