Skip to content

Rebootleby

Rebootleby #1968

Workflow file for this run

name: Continuous integration
on:
pull_request:
push:
branches: [master]
env:
CARGO_INCREMENTAL: 0 # set here rather than on CI profile so that the tests get it too
jobs:
check-msrv:
name: Check (MSRV)
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
deps: sudo apt-get update && sudo apt-get install libusb-1.0-0-dev libftdi1-dev libudev-dev
- os: windows-latest
deps: vcpkg install libusb libftdi1
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: '${{ matrix.deps }}'
- uses: actions/checkout@v2
with:
submodules: true
- uses: Swatinem/rust-cache@v1
- name: Install cargo-readme
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-readme
- uses: actions-rs/cargo@v1
with:
command: check
args: --profile=ci
check:
name: Check
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
deps: sudo apt-get update && sudo apt-get install libusb-1.0-0-dev libftdi1-dev libudev-dev
- os: windows-latest
deps: vcpkg install libusb libftdi1
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: '${{ matrix.deps }}'
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- name: Install cargo-readme
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-readme
- uses: actions-rs/cargo@v1
with:
command: check
args: --profile=ci
test:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
deps: sudo apt-get update && sudo apt-get install libusb-1.0-0-dev libftdi1-dev libudev-dev
- os: windows-latest
deps: vcpkg install libusb libftdi1
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: '${{ matrix.deps }}'
- uses: actions/checkout@v2
with:
submodules: true
- uses: Swatinem/rust-cache@v1
- name: Install cargo-readme
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-readme
- uses: actions-rs/cargo@v1
with:
command: test
args: --all --profile=ci
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install libusb-1.0-0-dev libftdi1-dev libudev-dev
- uses: actions/checkout@v2
with:
submodules: true
- uses: Swatinem/rust-cache@v1
- name: Install cargo-readme
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-readme
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --profile=ci -- -D warnings