Enable use-cross for job "Build release for arm musl target"

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-05-31 12:40:48 +10:00
parent 37ddf3c435
commit 7796f8760a
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -80,11 +80,20 @@ jobs:
run: sudo apt-get install -y musl-tools
- name: Build release
if: ${{ matrix.target != 'armv7-unknown-linux-musleabihf' }}
uses: actions-rs/cargo@v1
with:
command: build
args: --target ${{ matrix.target }} --release
- name: Build release for armv7 musl target
if: ${{ matrix.target == 'armv7-unknown-linux-musleabihf' }}
uses: actions-rs/cargo@v1
with:
command: build
args: --target ${{ matrix.target }} --release
use-cross: true
- name: Copy and rename utility
run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }}