Merge pull request #1651 from delta1/ci-release-bins

ci: fix build-release-binaries
This commit is contained in:
Byron Hambly 2024-05-27 12:04:47 +02:00 committed by GitHub
commit 2ef2863e89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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