|
|
@ -13,6 +13,10 @@ jobs:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
submodules: 'true'
|
|
|
|
submodules: 'true'
|
|
|
|
|
|
|
|
- name: install libclang
|
|
|
|
|
|
|
|
uses: crazy-max/ghaction-chocolatey@v1
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
args: install llvm
|
|
|
|
- name: build
|
|
|
|
- name: build
|
|
|
|
run: cargo build --workspace --verbose
|
|
|
|
run: cargo build --workspace --verbose
|
|
|
|
- name: run tests
|
|
|
|
- name: run tests
|
|
|
@ -51,24 +55,6 @@ jobs:
|
|
|
|
- name: build examples
|
|
|
|
- name: build examples
|
|
|
|
run: cargo build --workspace --examples --verbose
|
|
|
|
run: cargo build --workspace --examples --verbose
|
|
|
|
|
|
|
|
|
|
|
|
build-ubuntu-aarch64:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
submodules: 'true'
|
|
|
|
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
toolchain: stable
|
|
|
|
|
|
|
|
target: aarch64-unknown-linux-gnu
|
|
|
|
|
|
|
|
override: true
|
|
|
|
|
|
|
|
- run: sudo apt-get install libusb-1.0-0-dev
|
|
|
|
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
use-cross: true
|
|
|
|
|
|
|
|
command: build
|
|
|
|
|
|
|
|
args: --target aarch64-unknown-linux-gnu --workspace --verbose
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
@ -89,6 +75,8 @@ jobs:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
submodules: 'true'
|
|
|
|
submodules: 'true'
|
|
|
|
|
|
|
|
- name: install libusb-1.0
|
|
|
|
|
|
|
|
run: sudo apt-get install libusb-1.0-0-dev
|
|
|
|
- name: setup rust nightly
|
|
|
|
- name: setup rust nightly
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|