DRAFT: RAA229620A phase check and open pin support #2481
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: "1.89" # must match Cargo.toml | |
| override: true | |
| - uses: Swatinem/rust-cache@v1 | |
| - 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 | |
| - 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: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| override: true | |
| - uses: Swatinem/rust-cache@v1 | |
| - 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: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: "1.89" # must match Cargo.toml | |
| components: clippy | |
| override: true | |
| - uses: Swatinem/rust-cache@v1 | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: clippy | |
| args: --profile=ci -- -D warnings |