From 7796f8760a4713013ca5ebca5e863fe5cacc74f6 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Tue, 31 May 2022 12:40:48 +1000 Subject: [PATCH] Enable `use-cross` for job "Build release for arm musl target" Signed-off-by: Jiahao XU --- .github/workflows/rust.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 59962d71..674f6e96 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 }}