Skip to content

Updates bindgen to 0.68 #37

Updates bindgen to 0.68

Updates bindgen to 0.68 #37

Workflow file for this run

on: [pull_request, push]
jobs:
lint_fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
- name: Check formating
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
lint_clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --features mock -- --deny warnings
tests:
name: Tests
strategy:
matrix:
mode: ["debug", "release"]
package: ["rp-sys", "redpitaya"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run tests (debug)
if: matrix.mode == 'debug'
run: cargo test --jobs 1 --features mock --package "${{ matrix.package }}"
- name: Run tests (release)
if: matrix.mode == 'release'
run: cargo test --jobs 1 --features mock --package "${{ matrix.package }}" --release