mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-18 13:44:11 -05:00
.cargo/config.toml for specifying linker
To avoid code duplication we specify the linker for the specific target armv7-unknown-linux-gnueabihf in the config.toml file as specified here: https://doc.rust-lang.org/cargo/reference/config.html#targettriplelinker
This commit is contained in:
parent
6e09653d3f
commit
f8360fe853
2
.cargo/config.toml
Normal file
2
.cargo/config.toml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[target.armv7-unknown-linux-gnueabihf]
|
||||||
|
linker = "arm-linux-gnueabihf-gcc"
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -64,8 +64,6 @@ jobs:
|
|||||||
sudo apt-get install gcc-arm-linux-gnueabihf
|
sudo apt-get install gcc-arm-linux-gnueabihf
|
||||||
|
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
env:
|
|
||||||
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: arm-linux-gnueabihf-gcc
|
|
||||||
run: |
|
run: |
|
||||||
cargo build -p swap --target ${{ matrix.target }}
|
cargo build -p swap --target ${{ matrix.target }}
|
||||||
|
|
||||||
@ -100,8 +98,6 @@ jobs:
|
|||||||
- uses: Swatinem/rust-cache@v1.2.0
|
- uses: Swatinem/rust-cache@v1.2.0
|
||||||
|
|
||||||
- name: Build tests
|
- name: Build tests
|
||||||
env:
|
|
||||||
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: arm-linux-gnueabihf-gcc
|
|
||||||
run: cargo build --tests --workspace --all-features
|
run: cargo build --tests --workspace --all-features
|
||||||
|
|
||||||
- name: Run monero-harness tests
|
- name: Run monero-harness tests
|
||||||
|
3
.github/workflows/release-cli.yml
vendored
3
.github/workflows/release-cli.yml
vendored
@ -55,8 +55,7 @@ jobs:
|
|||||||
sudo apt-get install gcc-arm-linux-gnueabihf
|
sudo apt-get install gcc-arm-linux-gnueabihf
|
||||||
|
|
||||||
- name: Build ${{ matrix.target }} ${{ matrix.bin }} release binary
|
- name: Build ${{ matrix.target }} ${{ matrix.bin }} release binary
|
||||||
env:
|
|
||||||
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER: arm-linux-gnueabihf-gcc
|
|
||||||
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…
x
Reference in New Issue
Block a user