mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
ci: fix build-release-binaries
This commit is contained in:
parent
2ef2863e89
commit
52d56ae254
14
.github/workflows/build-release-binaries.yml
vendored
14
.github/workflows/build-release-binaries.yml
vendored
@ -6,8 +6,9 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_binaries:
|
build_binaries:
|
||||||
name: Build swap and asb binaries
|
name: Build
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- bin: swap
|
- bin: swap
|
||||||
@ -63,11 +64,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: "1.74"
|
toolchain: "1.74"
|
||||||
|
|
||||||
- name: install armv7 target
|
- name: Cross Build ${{ matrix.target }} ${{ matrix.bin }} binary
|
||||||
if: matrix.target != 'armv7-unknown-linux-gnueabihf'
|
if: matrix.target == 'armv7-unknown-linux-gnueabihf'
|
||||||
run: rustup target add 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
|
- 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 }}
|
run: cargo build --target=${{ matrix.target }} --release --package swap --bin ${{ matrix.bin }}
|
||||||
|
|
||||||
- name: Smoke test the binary
|
- name: Smoke test the binary
|
||||||
|
Loading…
Reference in New Issue
Block a user