This repository has been archived by the owner on May 23, 2024. It is now read-only.
Don't require atomic ops to initialize log, remove atomic ops from inside critical section #82
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
check-riscv: | |
name: Check RISC-V | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [esp32c2, esp32c3, esp32c6, esp32h2] | |
printer: ["rtt", "uart"] | |
include: | |
- chip: esp32c3 | |
printer: "jtag_serial" | |
- chip: esp32c6 | |
printer: "jtag_serial" | |
- chip: esp32h2 | |
printer: "jtag_serial" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
target: riscv32imc-unknown-none-elf | |
toolchain: nightly | |
components: rust-src | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo check -Zbuild-std=core --no-default-features --target=riscv32imc-unknown-none-elf --features=${{ matrix.chip }},${{ matrix.printer }} | |
check-xtensa: | |
name: Check Xtensa | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
chip: [esp32, esp32s2, esp32s3] | |
printer: ["rtt", "uart"] | |
include: | |
- chip: esp32s3 | |
printer: "jtag_serial" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: esp-rs/xtensa-toolchain@v1.5 | |
with: | |
default: true | |
ldproxy: false | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo check -Zbuild-std=core --no-default-features --target=xtensa-${{ matrix.chip }}-none-elf --features=${{ matrix.chip }},${{ matrix.printer }} | |
check-log-riscv: | |
name: Log drivers | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
logger: ["", ",log", ",defmt", ",defmt-raw"] | |
color: [""] | |
critical-section: ["", ",critical-section"] | |
include: | |
- logger: ",log" | |
color: ",colors" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
target: riscv32imc-unknown-none-elf | |
toolchain: nightly | |
components: rust-src | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo check -Zbuild-std=core --no-default-features --target=riscv32imc-unknown-none-elf --features=uart,esp32c2${{ matrix.logger }}${{ matrix.color }}${{ matrix.critical-section }} | |
rustfmt: | |
name: Check formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo fmt --all -- --check |