bump ublox_derive to v0.1.0 (#70) #191
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: Rust | |
on: | |
push: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
feature-args: | |
- '' | |
- --no-default-features --features alloc | |
- --no-default-features --features serde | |
- --no-default-features | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install libudev | |
run: sudo apt-get update && sudo apt-get install -y libudev-dev | |
- name: Install MSRV | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.65.0 | |
override: true | |
components: rustfmt, clippy | |
- name: Build | |
run: cargo build --verbose ${{ matrix.feature-args }} | |
- name: Run tests | |
run: cargo test --verbose ${{ matrix.feature-args }} | |
- name: Coding style | |
run: | | |
cargo fmt --all -- --check | |
cargo clippy --all-features --all-targets -- -D warnings | |
build_embedded: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install MSRV | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.70.0 | |
override: true | |
- name: Install embedded targets | |
run: rustup target add thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabihf | |
- name: Build | |
run: cargo build --verbose --no-default-features --target thumbv6m-none-eabi --target thumbv7m-none-eabi --target thumbv7em-none-eabihf | |
- name: Build (alloc) | |
run: cargo build --verbose --no-default-features --target thumbv6m-none-eabi --target thumbv7m-none-eabi --target thumbv7em-none-eabihf --features alloc | |
- name: Build (serde) | |
run: cargo build --verbose --no-default-features --target thumbv6m-none-eabi --target thumbv7m-none-eabi --target thumbv7em-none-eabihf --features serde | |
build_examples: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install libudev | |
run: sudo apt-get update && sudo apt-get install -y libudev-dev | |
- name: Install MSRV | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: 1.70.0 | |
override: true | |
components: rustfmt, clippy | |
- name: Build | |
run: cd ${{ github.workspace }}/examples && cargo build | |
- name: Coding style | |
run: | | |
cd ${{ github.workspace }}/examples && cargo fmt --all -- --check | |
cd ${{ github.workspace }}/examples && cargo clippy --all-features --all-targets -- -D warnings |