Skip to content

Merge pull request #106 from geovie/feature/return-edone-in-char-disc… #399

Merge pull request #106 from geovie/feature/return-edone-in-char-disc…

Merge pull request #106 from geovie/feature/return-edone-in-char-disc… #399

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ESP_IDF_SDKCONFIG_DEFAULTS: "${{ github.workspace }}/.github/configs/sdkconfig.defaults"
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- target: riscv32imc-esp-espidf
idf-version: release/v4.4
rustflags: "-C default-linker-libraries"
- target: riscv32imc-esp-espidf
idf-version: v5.1.2
rustflags: "-C default-linker-libraries --cfg espidf_time64"
- target: riscv32imc-esp-espidf
idf-version: v5.2
rustflags: "-C default-linker-libraries --cfg espidf_time64"
- target: riscv32imac-esp-espidf
idf-version: v5.1.2
rustflags: "-C default-linker-libraries --cfg espidf_time64"
mcu: esp32c6
- target: xtensa-esp32-espidf
idf-version: release/v4.4
- target: xtensa-esp32-espidf
idf-version: v5.1.2
rustflags: "--cfg espidf_time64"
- target: xtensa-esp32-espidf
idf-version: v5.2
rustflags: "--cfg espidf_time64"
steps:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Install Rust for Xtensa
uses: esp-rs/xtensa-toolchain@v1.5
with:
default: true
ldproxy: true
- name: Setup | MCU
if: ${{ matrix.mcu }}
run: echo "MCU=${{ matrix.mcu }}" >> "$GITHUB_ENV"
- name: Setup env
run: |
echo "ESP_IDF_VERSION=${{ matrix.idf-version }}" >> "$GITHUB_ENV"
echo "RUSTFLAGS=${{ matrix.rustflags }}" >> "$GITHUB_ENV"
- name: Fmt check
run: cargo fmt --check
- name: Clippy check
run: cargo clippy --target ${{ matrix.target }} -- -D clippy::all
- name: Build
run: cargo build --target ${{ matrix.target }}
- name: Build | no_std
run: cargo build --target ${{ matrix.target }} --no-default-features --features no_std
- name: Build | Examples
if: ${{ (matrix.target == 'xtensa-esp32-espidf') && (matrix.idf-version == 'v5.1.1') }}
run: cargo build --target ${{ matrix.target }} --example ble_*
- name: Build | Examples(ble5)
if: ${{ (matrix.target == 'riscv32imc-esp-espidf') && (matrix.idf-version == 'v5.1.1') }}
run: cargo build --target ${{ matrix.target }} --example ble5_*