Skip to content

Bulk update of docs mentioning .cargo/config #247

Bulk update of docs mentioning .cargo/config

Bulk update of docs mentioning .cargo/config #247

Workflow file for this run

on: [push, pull_request]
name: Build and Test check
jobs:
builds:
name: Build checks
runs-on: ubuntu-20.04
strategy:
matrix:
features: ["--features rp2040-hal/rtic-monotonic", "--features rp2040-e5"]
mode: ["", "--release"]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
target: thumbv6m-none-eabi
- name: Build workspace
run: cargo build ${{ matrix.mode }} --workspace ${{ matrix.features }}
- name: Build workspace and examples
run: cargo build ${{ matrix.mode }} --workspace --examples ${{ matrix.features }}
- name: List built examples and clean
run: rm -vrf target/thumbv6m-none-eabi/*/examples/* | sed -e "s/removed '\(.*\)'/\1/" | xargs -l basename | grep -Ev '(-|\.d)'
- name: Test
run: cargo test --tests --target x86_64-unknown-linux-gnu ${{ matrix.features }}
- name: Test docs
run: cargo test --doc --target x86_64-unknown-linux-gnu ${{ matrix.features }}
- name: Clean
run: cargo clean
udeps:
name: Check rp2040-hal for unused dependencies
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-01-30
target: thumbv6m-none-eabi
- name: Install cargo-udeps
uses: baptiste0928/cargo-install@v2
with:
crate: cargo-udeps
version: "=0.1.41"
- name: Check unused deps
run: cargo udeps ${{ matrix.mode }} --workspace ${{ matrix.features }}