Skip to content

Initialize esp_alloc in esp examples (#48) #94

Initialize esp_alloc in esp examples (#48)

Initialize esp_alloc in esp examples (#48) #94

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- "**/README.md"
pull_request:
workflow_dispatch:
env:
rust_toolchain: nightly
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
compile:
name: Compile
runs-on: ubuntu-latest
strategy:
matrix:
target:
- default
steps:
- name: Setup | Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ env.rust_toolchain }}
components: rustfmt, clippy, rust-src
- name: Setup | Rust thumbv7em-none-eabi
run: rustup target add thumbv7em-none-eabi
- name: Setup | Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build | Fmt Check
run: cd openthread; cargo fmt -- --check
- name: Build | Clippy
run: cd openthread; cargo clippy --no-deps --features udp,srp,edge-nal,embassy-net-driver-channel,log -- -Dwarnings
- name: Build | Clippy - defmt
run: export DEFMT_LOG=trace;cd openthread; cargo clippy --no-deps --features udp,srp,edge-nal,embassy-net-driver-channel,defmt -- -Dwarnings
- name: Build | Compile
run: cd openthread; cargo build
- name: Examples-ESP-Build | Fmt Check
run: cd examples/esp; cargo fmt -- --check
- name: Examples-ESP-Build | Clippy
run: cd examples/esp; cargo clippy --no-deps -- -Dwarnings
- name: Examples-ESP-Build | Compile
run: cd examples/esp; cargo build
- name: Examples-NRF-Build | Fmt Check
run: cd examples/nrf; cargo fmt -- --check
- name: Examples-NRF-Build | Clippy
run: cd examples/nrf; cargo clippy --no-deps -- -Dwarnings
- name: Examples-NRF-Build | Compile
run: cd examples/nrf; cargo build