Skip to content

Fix Wi-Fi examples #199

Fix Wi-Fi examples

Fix Wi-Fi examples #199

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: rust-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
check-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup ESP-RS toolchain (RISC-V)
uses: esp-rs/xtensa-toolchain@v1.6
with:
default: true
ldproxy: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cache cargo artifacts
uses: Swatinem/rust-cache@v2
- name: Setup cargo config
run: cp .cargo/config.toml.dist .cargo/config.toml
- name: Install cargo-deny
run: cargo install cargo-deny --locked
- name: Deny (licenses, advisories, bans)
run: cargo deny check
- name: Check workspace
run: cargo check --workspace --release
- name: Test pure crates
shell: bash
run: |
host_target="$(rustc -vV | awk '/^host:/ {print $2}')"
cargo test -p rustyfarian-network-pure --target "${host_target}"
cargo test -p wifi-pure --features mock --target "${host_target}"
cargo test -p lora-pure --features mock --target "${host_target}"
cargo test -p espnow-pure --features mock --target "${host_target}"
cargo test -p ota-pure --target "${host_target}"
cargo test -p rustyfarian-esp-hal-ota --no-default-features --target "${host_target}"