mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-31 01:33:29 -05:00
ci: migrate to dtolnay/rust-toolchain
This commit is contained in:
parent
656c8df676
commit
743cf4a4d5
7
.github/workflows/build-release-binaries.yml
vendored
7
.github/workflows/build-release-binaries.yml
vendored
@ -52,12 +52,9 @@ jobs:
|
||||
|
||||
- uses: Swatinem/rust-cache@v2.2.0
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
target: armv7-unknown-linux-gnueabihf
|
||||
override: true
|
||||
targets: armv7-unknown-linux-gnueabihf
|
||||
|
||||
- name: Build ${{ matrix.target }} ${{ matrix.bin }} release binary
|
||||
uses: actions-rs/cargo@v1
|
||||
|
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -75,27 +75,21 @@ jobs:
|
||||
|
||||
- uses: Swatinem/rust-cache@v2.2.0
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
target: armv7-unknown-linux-gnueabihf
|
||||
override: true
|
||||
targets: armv7-unknown-linux-gnueabihf
|
||||
|
||||
- name: Build binary
|
||||
if: matrix.target != 'armv7-unknown-linux-gnueabihf'
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: -p swap --target ${{ matrix.target }}
|
||||
run: cargo build -p swap --target ${{ matrix.target }}
|
||||
|
||||
- name: Install cross (armv7)
|
||||
if: matrix.target == 'armv7-unknown-linux-gnueabihf'
|
||||
run: cargo install cross --locked
|
||||
|
||||
- name: Build binary (armv7)
|
||||
if: matrix.target == 'armv7-unknown-linux-gnueabihf'
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: -p swap --target ${{ matrix.target }}
|
||||
use-cross: true
|
||||
run: cross build -p swap --target ${{ matrix.target }}
|
||||
|
||||
- name: Upload swap binary
|
||||
uses: actions/upload-artifact@v3
|
||||
|
Loading…
x
Reference in New Issue
Block a user