Skip to content

chore(*): transition to core::net #55

chore(*): transition to core::net

chore(*): transition to core::net #55

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- name: Build (library)
run: cargo build --all --target thumbv7em-none-eabihf --features odin-w2xx,ppp
- name: Build (examples)
run: |
for EXAMPLE in $(ls examples);
do
(cd examples/$EXAMPLE && cargo build)
done
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- name: Test
run: cargo test --features "odin-w2xx,ppp"
- name: Install Miri
run: |
rustup toolchain install nightly --component miri
rustup override set nightly
cargo miri setup
- name: Test (Miri)
run: cargo miri test --lib
rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- name: Run rustfmt (library)
run: cargo fmt --all -- --check --verbose
- name: Run rustfmt (examples)
run: |
for EXAMPLE in $(ls examples);
do
(cd examples/$EXAMPLE && cargo fmt --all -- --check --verbose)
done
clippy:
name: clippy
runs-on: ubuntu-latest
env:
CLIPPY_PARAMS: -W clippy::all -W clippy::pedantic -W clippy::nursery -W clippy::cargo
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: dsherret/rust-toolchain-file@v1
- name: Run clippy (library)
run: cargo clippy --features "odin-w2xx,ppp" -- ${{ env.CLIPPY_PARAMS }}
- name: Run clippy (examples)
run: |
for EXAMPLE in $(ls examples);
do
(cd examples/$EXAMPLE && cargo clippy -- ${{ env.CLIPPY_PARAMS }})
done