From bbf8f8431261500c7cabe8070269a86ea8a9846f Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Mon, 27 May 2024 12:04:04 +0200 Subject: [PATCH] ci: fix build-release-binaries --- .github/workflows/build-release-binaries.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-release-binaries.yml b/.github/workflows/build-release-binaries.yml index bcd2c806..afa4d580 100644 --- a/.github/workflows/build-release-binaries.yml +++ b/.github/workflows/build-release-binaries.yml @@ -62,17 +62,16 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: "1.74" - targets: armv7-unknown-linux-gnueabihf + + - name: install armv7 target + if: matrix.target != 'armv7-unknown-linux-gnueabihf' + run: rustup target add armv7-unknown-linux-gnueabihf - name: Build ${{ matrix.target }} ${{ matrix.bin }} release binary - uses: actions-rs/cargo@v1 - with: - command: build - args: --target=${{ matrix.target }} --release --package swap --bin ${{ matrix.bin }} - use-cross: true + run: cargo build --target=${{ matrix.target }} --release --package swap --bin ${{ matrix.bin }} - name: Smoke test the binary - if: matrix.target != 'armv7-unknown-linux-gnueabihf' # armv7-unknown-linux-gnueabihf is only cross-compiled, no smoke test + if: matrix.target != 'armv7-unknown-linux-gnueabihf' run: target/${{ matrix.target }}/release/${{ matrix.bin }} --help # Remove once python 3 is the default