From 7ed4d337764f0db85dd1df80c9fb87d44d968654 Mon Sep 17 00:00:00 2001 From: ko1N Date: Fri, 20 Nov 2020 23:48:12 +0100 Subject: [PATCH] Updated ci --- .github/workflows/build.yml | 40 +++++++++---------------------------- 1 file changed, 9 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2d0f0c4..0a27471 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,29 +15,15 @@ jobs: steps: - 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 run: cargo build --workspace --verbose - if: runner.os != 'Windows' - name: Build examples 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: runs-on: ubuntu-latest @@ -48,6 +34,7 @@ jobs: 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 @@ -62,25 +49,16 @@ jobs: steps: - 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 run: cargo test --workspace --verbose if: runner.os == 'Linux' - name: Run all tests 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: runs-on: ubuntu-latest