Expose RS-485/422 feature of serial2
crate.
#41
Workflow file for this run
This file contains 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: tests | |
on: | |
push: { branches: ["main"] } | |
pull_request: { branches: ["*"] } | |
jobs: | |
build_and_test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@master | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: ${{ runner.os }}-cargo | |
- name: Build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --workspace --all-targets --color=always --features serde,unix | |
- name: Test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --workspace --all-targets --color=always --features serde,unix | |
- name: Clippy | |
uses: actions-rs-plus/[email protected] | |
with: | |
args: --workspace --all-targets --features serde,unix | |
check_configurations: | |
name: Check codebase | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: "-D warnings" | |
RUSTDOCFLAGS: "-D warnings" | |
strategy: | |
matrix: | |
target: | |
- "x86_64-unknown-linux-gnu" | |
- "aarch64-unknown-linux-gnu" | |
- "x86_64-pc-windows-msvc" | |
- "x86_64-apple-darwin" | |
- "x86_64-unknown-freebsd" | |
- "x86_64-unknown-netbsd" | |
with-rs4xx: ["", "--features rs4xx"] | |
with-unix: ["", "--features unix"] | |
with-windows: ["", "--features windows"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@master | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ matrix.target }} | |
- name: Install toolchain | |
run: rustup target add ${{ matrix.target }} | |
- name: Check | |
run: cargo clippy --workspace --color=always --target ${{ matrix.target }} ${{ matrix.with-rs4xx }} ${{ matrix.with-unix }} ${{ matrix.with-windows }} | |
- name: Specific docs | |
run: cargo doc --workspace --color=always --target ${{ matrix.target }} ${{ matrix.with-rs4xx }} ${{ matrix.with-unix }} ${{ matrix.with-windows }} | |
- name: Generic docs | |
run: cargo doc --workspace --color=always --target ${{ matrix.target }} --features doc |