Updated ci

pull/7/head
ko1N 4 years ago
parent f84005d7c6
commit 7ed4d33776

@ -15,29 +15,15 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install libusb-1.0
run: sudo apt-get install libusb-1.0-0-dev
if: runner.os != 'Windows'
- name: Build - name: Build
run: cargo build --workspace --verbose run: cargo build --workspace --verbose
if: runner.os != 'Windows'
- name: Build examples - name: Build examples
run: cargo build --workspace --examples --verbose run: cargo build --workspace --examples --verbose
if: runner.os != 'Windows'
- name: Set up Rust nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
if: runner.os == 'Windows'
- name: Build (nightly)
run: cargo +nightly build --workspace --all-features --verbose
if: runner.os == 'Windows'
- name: Build examples (nightly)
run: cargo +nightly build --workspace --all-features --examples --verbose
if: runner.os == 'Windows'
build-arm: build-arm:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -48,6 +34,7 @@ jobs:
toolchain: stable toolchain: stable
target: aarch64-unknown-linux-gnu target: aarch64-unknown-linux-gnu
override: true override: true
- run: sudo apt-get install libusb-1.0-0-dev
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
use-cross: true use-cross: true
@ -62,25 +49,16 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install libusb-1.0
run: sudo apt-get install libusb-1.0-0-dev
if: runner.os != 'Windows'
- name: Run all tests - name: Run all tests
run: cargo test --workspace --verbose run: cargo test --workspace --verbose
if: runner.os == 'Linux' if: runner.os == 'Linux'
- name: Run all tests - name: Run all tests
run: cargo test --workspace --exclude memflow-derive --verbose run: cargo test --workspace --exclude memflow-derive --verbose
if: runner.os == 'macOS'
- name: Set up Rust nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
if: runner.os == 'Windows'
- name: Run all tests (nightly)
run: cargo +nightly test --workspace --exclude memflow-derive --all-features --verbose
if: runner.os == 'Windows'
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest

Loading…
Cancel
Save