Skip to content

Add init method for cortex #17

Add init method for cortex

Add init method for cortex #17

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
# 1. Check Build & Tests of CLI for Linux, Windows, Mac
test-cli:
name: Test CLI (Linux/Windows/Mac)
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Update Rust
run: rustup update stable
- name: Build CLI
run: cargo build --package rustmeter --verbose
- name: Test CLI
run: cargo test --package rustmeter --verbose
# 2. Code-Quality (Formatting + Clippy)
clippy-fmt:
name: Clippy & Fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Formatting
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
# 3. Build-Check for Embedded (Beacon)
# Here we only check if it compiles
build-embedded:
name: Build Embedded Beacon
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# --- Step A: Standard Rust Targets (RISC-V & ARM) ---
# These are included in the official Rust Nightly
- name: Install Official Rust Nightly (RISC-V & ARM)
uses: dtolnay/rust-toolchain@nightly
with:
targets: riscv32imc-unknown-none-elf, thumbv7em-none-eabi
# - name: Build Beacon (RISC-V / ESP32-C3)
# run: cargo build --package rustmeter-beacon --target riscv32imc-unknown-none-elf --no-default-features
- name: Build Beacon (Cortex-M / STM32)
run: cargo build --package rustmeter-beacon --target thumbv7em-none-eabi --no-default-features
# --- Step B: Xtensa Targets (ESP32 Classic, S2, S3) ---
# These require a custom toolchain installation
# - name: Install Xtensa Toolchain
# uses: esp-rs/xtensa-toolchain@v1.5
# with:
# default: true
# buildtargets: esp32, esp32s2, esp32s3
# ldproxy: false
# - name: Build Beacon (Xtensa / ESP32 Classic)
# run: cargo build --package rustmeter-beacon --target xtensa-esp32-none-elf --no-default-features