forked from hush/silentdragonlite-cli
DenioD
5 years ago
12 changed files with 120 additions and 34 deletions
@ -0,0 +1,80 @@ |
|||
name: Rust |
|||
|
|||
on: [push, pull_request] |
|||
|
|||
jobs: |
|||
build: |
|||
name: Build on ${{ matrix.os }} |
|||
runs-on: ${{ matrix.os }} |
|||
strategy: |
|||
matrix: |
|||
os: [ubuntu-latest, windows-latest, macOS-latest] |
|||
|
|||
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 |
|||
args: --verbose --release --all |
|||
- name: Run tests |
|||
uses: actions-rs/cargo@v1 |
|||
with: |
|||
command: test |
|||
args: --verbose --release --all |
|||
- name: Upload |
|||
uses: actions/upload-artifact@v1 |
|||
with: |
|||
name: ${{ matrix.os }}-silentdragonlite-cli |
|||
path: target/release/silentdragonlite-cli |
|||
|
|||
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 |
|||
args: --release --target armv7-unknown-linux-gnueabihf |
|||
- name: Upload |
|||
uses: actions/upload-artifact@v1 |
|||
with: |
|||
name: linux_armv7-silentdragonlite-cli |
|||
path: target/armv7-unknown-linux-gnueabihf/release/silentdragonlite-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 |
|||
args: --release --target aarch64-unknown-linux-gnu |
|||
- name: Upload |
|||
uses: actions/upload-artifact@v1 |
|||
with: |
|||
name: linux_aarch64-silentdragonlite-cli |
|||
path: target/aarch64-unknown-linux-gnu/release/silentdragonlite-cli |
|||
|
@ -1,21 +1,8 @@ |
|||
[package] |
|||
name = "silentdragonlite-cli" |
|||
version = "1.1.0" |
|||
edition = "2018" |
|||
|
|||
[dependencies] |
|||
rustyline = "5.0.2" |
|||
clap = "2.33" |
|||
log = "0.4" |
|||
log4rs = "0.8.3" |
|||
shellwords = "1.0.0" |
|||
json = "0.12.0" |
|||
http = "0.1" |
|||
byteorder = "1" |
|||
tiny-bip39 = "0.6.2" |
|||
|
|||
silentdragonlitelib = { path = "./lib/" } |
|||
|
|||
[workspace] |
|||
members = [ |
|||
"lib", |
|||
"cli", |
|||
] |
|||
|
|||
[profile.release] |
|||
debug = false |
@ -0,0 +1,18 @@ |
|||
[package] |
|||
name = "silentdragonlite-cli" |
|||
version = "1.1.0" |
|||
edition = "2018" |
|||
|
|||
[dependencies] |
|||
rustyline = "5.0.2" |
|||
clap = "2.33" |
|||
log = "0.4" |
|||
log4rs = "0.8.3" |
|||
shellwords = "1.0.0" |
|||
json = "0.12.0" |
|||
http = "0.1" |
|||
byteorder = "1" |
|||
tiny-bip39 = "0.6.2" |
|||
|
|||
silentdragonlitelib = { path = "../lib/" } |
|||
|
Loading…
Reference in new issue