mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 15:09:35 -05:00
Merge #1226
1226: ci: use cargo cross for binary builds r=delta1 a=delta1 related to #1218 see: https://github.com/comit-network/xmr-btc-swap/pull/1225#issuecomment-1327637918 Co-authored-by: Byron Hambly <bhambly@blockstream.com>
This commit is contained in:
commit
ee06b2a0e4
18
.github/workflows/build-release-binaries.yml
vendored
18
.github/workflows/build-release-binaries.yml
vendored
@ -52,15 +52,19 @@ jobs:
|
|||||||
|
|
||||||
- uses: Swatinem/rust-cache@v2.2.0
|
- uses: Swatinem/rust-cache@v2.2.0
|
||||||
|
|
||||||
- name: Install compiler for armhf arch
|
- uses: actions-rs/toolchain@v1
|
||||||
if: matrix.target == 'armv7-unknown-linux-gnueabihf'
|
with:
|
||||||
run: |
|
toolchain: stable
|
||||||
sudo apt-get update
|
profile: minimal
|
||||||
sudo apt-get install gcc-arm-linux-gnueabihf
|
target: armv7-unknown-linux-gnueabihf
|
||||||
|
override: true
|
||||||
|
|
||||||
- name: Build ${{ matrix.target }} ${{ matrix.bin }} release binary
|
- name: Build ${{ matrix.target }} ${{ matrix.bin }} release binary
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
run: cargo build --target=${{ matrix.target }} --release --package swap --bin ${{ matrix.bin }}
|
with:
|
||||||
|
command: build
|
||||||
|
args: --target=${{ matrix.target }} --release --package swap --bin ${{ matrix.bin }}
|
||||||
|
use-cross: true
|
||||||
|
|
||||||
- name: Smoke test the binary
|
- 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' # armv7-unknown-linux-gnueabihf is only cross-compiled, no smoke test
|
||||||
|
Loading…
Reference in New Issue
Block a user