mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-31 09:43:33 -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: Swatinem/rust-cache@v2.2.0
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
targets: armv7-unknown-linux-gnueabihf
|
||||||
profile: minimal
|
|
||||||
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
|
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: Swatinem/rust-cache@v2.2.0
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
targets: armv7-unknown-linux-gnueabihf
|
||||||
profile: minimal
|
|
||||||
target: armv7-unknown-linux-gnueabihf
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
if: matrix.target != 'armv7-unknown-linux-gnueabihf'
|
if: matrix.target != 'armv7-unknown-linux-gnueabihf'
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo build -p swap --target ${{ matrix.target }}
|
||||||
with:
|
|
||||||
command: build
|
- name: Install cross (armv7)
|
||||||
args: -p swap --target ${{ matrix.target }}
|
if: matrix.target == 'armv7-unknown-linux-gnueabihf'
|
||||||
|
run: cargo install cross --locked
|
||||||
|
|
||||||
- name: Build binary (armv7)
|
- name: Build binary (armv7)
|
||||||
if: matrix.target == 'armv7-unknown-linux-gnueabihf'
|
if: matrix.target == 'armv7-unknown-linux-gnueabihf'
|
||||||
uses: actions-rs/cargo@v1
|
run: cross build -p swap --target ${{ matrix.target }}
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: -p swap --target ${{ matrix.target }}
|
|
||||||
use-cross: true
|
|
||||||
|
|
||||||
- name: Upload swap binary
|
- name: Upload swap binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user