chore(*): transition to core::net #155
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ 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 "lara-r6" | |
# - 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 "lara-r6" | |
- 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 --features "lara-r6" | |
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 "lara-r6" -- ${{ env.CLIPPY_PARAMS }} | |
# - name: Run clippy (examples) | |
# run: | | |
# for EXAMPLE in $(ls examples); | |
# do | |
# (cd examples/$EXAMPLE && cargo clippy -- ${{ env.CLIPPY_PARAMS }}) | |
# done |