Skip to content

Commit

Permalink
Merge pull request #1652 from delta1/ci-release-bins
Browse files Browse the repository at this point in the history
ci: fix build-release-binaries
  • Loading branch information
delta1 authored May 27, 2024
2 parents 2ef2863 + 52d56ae commit 1d4a536
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build-release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ on:

jobs:
build_binaries:
name: Build swap and asb binaries
name: Build
strategy:
fail-fast: false
matrix:
include:
- bin: swap
Expand Down Expand Up @@ -63,11 +64,16 @@ jobs:
with:
toolchain: "1.74"

- name: install armv7 target
if: matrix.target != 'armv7-unknown-linux-gnueabihf'
run: rustup target add armv7-unknown-linux-gnueabihf
- name: Cross Build ${{ matrix.target }} ${{ matrix.bin }} binary
if: matrix.target == 'armv7-unknown-linux-gnueabihf'
run: |
curl -L "https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-gnu.tar.gz" | tar xzv
sudo mv cross /usr/bin
sudo mv cross-util /usr/bin
cross build --target=${{ matrix.target }} --release --package swap --bin ${{ matrix.bin }}
- name: Build ${{ matrix.target }} ${{ matrix.bin }} release binary
if: matrix.target != 'armv7-unknown-linux-gnueabihf'
run: cargo build --target=${{ matrix.target }} --release --package swap --bin ${{ matrix.bin }}

- name: Smoke test the binary
Expand Down

0 comments on commit 1d4a536

Please sign in to comment.