piratewallet-light-cli/.github/workflows/rust.yml

89 lines
2.5 KiB
YAML
Raw Normal View History

2019-10-22 19:56:36 +00:00
name: Rust
on: [push, pull_request]
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
2019-10-22 22:09:42 +00:00
os: [ubuntu-16.04, windows-latest, macOS-latest]
2019-10-22 19:56:36 +00:00
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.38.0
override: true
- name: cargo fetch
uses: actions-rs/cargo@v1
with:
command: fetch
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
2019-10-22 21:18:31 +00:00
args: --verbose --release --all
2019-10-22 20:21:18 +00:00
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --release --all
2019-10-22 21:34:03 +00:00
- name: Upload ubuntu/macos
2019-10-22 20:38:08 +00:00
uses: actions/upload-artifact@v1
2019-10-22 21:34:03 +00:00
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
2019-10-22 20:38:08 +00:00
with:
name: ${{ matrix.os }}-zecwallet-cli
path: target/release/zecwallet-cli
2019-10-22 21:34:03 +00:00
- name: Upload windows
uses: actions/upload-artifact@v1
if: contains(matrix.os, 'windows')
with:
name: ${{ matrix.os }}-zecwallet-cli.exe
path: target/release/zecwallet-cli.exe
2019-10-22 20:38:08 +00:00
linux_arm7:
name: Linux ARMv7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: armv7-unknown-linux-gnueabihf
override: true
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
2019-10-22 21:18:31 +00:00
args: --release --target armv7-unknown-linux-gnueabihf
2019-10-22 20:38:08 +00:00
- name: Upload
uses: actions/upload-artifact@v1
with:
name: linux_armv7-zecwallet-cli
path: target/armv7-unknown-linux-gnueabihf/release/zecwallet-cli
linux_aarch64:
name: Linux ARM64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: aarch64-unknown-linux-gnu
override: true
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
2019-10-22 21:18:31 +00:00
args: --release --target aarch64-unknown-linux-gnu
2019-10-22 20:38:08 +00:00
- name: Upload
uses: actions/upload-artifact@v1
with:
name: linux_aarch64-zecwallet-cli
path: target/aarch64-unknown-linux-gnu/release/zecwallet-cli