mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-02 22:55:26 +00:00
Ensure that documentation can be generated for all packages in CI (#659)
* Make documentation buildable again * Ensure that documentation can be generated for all packages in CI
This commit is contained in:
parent
37466fd9c7
commit
31f7b974fd
33
.github/workflows/ci.yml
vendored
33
.github/workflows/ci.yml
vendored
@ -4,7 +4,11 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
paths-ignore:
|
||||||
|
- "**/README.md"
|
||||||
push:
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- "**/README.md"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@ -21,7 +25,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Check
|
# Check Packages
|
||||||
|
|
||||||
esp-hal-smartled:
|
esp-hal-smartled:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -53,6 +57,9 @@ jobs:
|
|||||||
run: cd esp-hal-smartled/ && cargo +esp check --features=esp32s2
|
run: cd esp-hal-smartled/ && cargo +esp check --features=esp32s2
|
||||||
- name: check (esp32s3)
|
- name: check (esp32s3)
|
||||||
run: cd esp-hal-smartled/ && cargo +esp check --features=esp32s3
|
run: cd esp-hal-smartled/ && cargo +esp check --features=esp32s3
|
||||||
|
# Ensure documentation can be built (requires a chip feature!)
|
||||||
|
- name: rustdoc
|
||||||
|
run: cd esp-hal-smartled/ && cargo doc --features=esp32c3
|
||||||
|
|
||||||
esp32-hal:
|
esp32-hal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -84,6 +91,9 @@ jobs:
|
|||||||
run: cd esp32-hal/ && cargo check --example=embassy_serial --features=embassy,embassy-time-timg0,async
|
run: cd esp32-hal/ && cargo check --example=embassy_serial --features=embassy,embassy-time-timg0,async
|
||||||
- name: check esp32-hal (async, i2c)
|
- name: check esp32-hal (async, i2c)
|
||||||
run: cd esp32-hal/ && cargo check --example=embassy_i2c --features=embassy,embassy-time-timg0,async
|
run: cd esp32-hal/ && cargo check --example=embassy_i2c --features=embassy,embassy-time-timg0,async
|
||||||
|
# Ensure documentation can be built
|
||||||
|
- name: rustdoc
|
||||||
|
run: cd esp32-hal/ && cargo doc
|
||||||
|
|
||||||
esp32c2-hal:
|
esp32c2-hal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -123,6 +133,9 @@ jobs:
|
|||||||
run: cd esp32c2-hal/ && cargo +nightly check --example=embassy_i2c --features=embassy,embassy-time-systick,async
|
run: cd esp32c2-hal/ && cargo +nightly check --example=embassy_i2c --features=embassy,embassy-time-systick,async
|
||||||
- name: check esp32c2-hal (interrupt-preemption)
|
- name: check esp32c2-hal (interrupt-preemption)
|
||||||
run: cd esp32c2-hal/ && cargo check --example=interrupt_preemption --features=interrupt-preemption
|
run: cd esp32c2-hal/ && cargo check --example=interrupt_preemption --features=interrupt-preemption
|
||||||
|
# Ensure documentation can be built
|
||||||
|
- name: rustdoc
|
||||||
|
run: cd esp32c2-hal/ && cargo doc
|
||||||
|
|
||||||
esp32c3-hal:
|
esp32c3-hal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -164,6 +177,9 @@ jobs:
|
|||||||
run: cd esp32c3-hal/ && cargo +nightly check --example=embassy_i2c --features=embassy,embassy-time-systick,async
|
run: cd esp32c3-hal/ && cargo +nightly check --example=embassy_i2c --features=embassy,embassy-time-systick,async
|
||||||
- name: check esp32c3-hal (interrupt-preemption)
|
- name: check esp32c3-hal (interrupt-preemption)
|
||||||
run: cd esp32c3-hal/ && cargo check --example=interrupt_preemption --features=interrupt-preemption
|
run: cd esp32c3-hal/ && cargo check --example=interrupt_preemption --features=interrupt-preemption
|
||||||
|
# Ensure documentation can be built
|
||||||
|
- name: rustdoc
|
||||||
|
run: cd esp32c3-hal/ && cargo doc
|
||||||
|
|
||||||
esp32c6-hal:
|
esp32c6-hal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -203,6 +219,9 @@ jobs:
|
|||||||
run: cd esp32c6-hal/ && cargo +nightly check --example=embassy_i2c --features=embassy,embassy-time-systick,async
|
run: cd esp32c6-hal/ && cargo +nightly check --example=embassy_i2c --features=embassy,embassy-time-systick,async
|
||||||
- name: check esp32c6-hal (interrupt-preemption)
|
- name: check esp32c6-hal (interrupt-preemption)
|
||||||
run: cd esp32c6-hal/ && cargo check --example=interrupt_preemption --features=interrupt-preemption
|
run: cd esp32c6-hal/ && cargo check --example=interrupt_preemption --features=interrupt-preemption
|
||||||
|
# Ensure documentation can be built
|
||||||
|
- name: rustdoc
|
||||||
|
run: cd esp32c6-hal/ && cargo doc
|
||||||
|
|
||||||
esp32h2-hal:
|
esp32h2-hal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -242,6 +261,9 @@ jobs:
|
|||||||
run: cd esp32h2-hal/ && cargo +nightly check --example=embassy_i2c --features=embassy,embassy-time-systick,async
|
run: cd esp32h2-hal/ && cargo +nightly check --example=embassy_i2c --features=embassy,embassy-time-systick,async
|
||||||
- name: check esp32h2-hal (interrupt-preemption)
|
- name: check esp32h2-hal (interrupt-preemption)
|
||||||
run: cd esp32h2-hal/ && cargo check --example=interrupt_preemption --features=interrupt-preemption
|
run: cd esp32h2-hal/ && cargo check --example=interrupt_preemption --features=interrupt-preemption
|
||||||
|
# Ensure documentation can be built
|
||||||
|
- name: rustdoc
|
||||||
|
run: cd esp32h2-hal/ && cargo doc
|
||||||
|
|
||||||
esp32s2-hal:
|
esp32s2-hal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -276,6 +298,9 @@ jobs:
|
|||||||
run: cd esp32s2-hal/ && cargo check --example=embassy_serial --features=embassy,embassy-time-timg0,async
|
run: cd esp32s2-hal/ && cargo check --example=embassy_serial --features=embassy,embassy-time-timg0,async
|
||||||
- name: check esp32s2-hal (async, i2c)
|
- name: check esp32s2-hal (async, i2c)
|
||||||
run: cd esp32s2-hal/ && cargo check --example=embassy_i2c --features=embassy,embassy-time-timg0,async
|
run: cd esp32s2-hal/ && cargo check --example=embassy_i2c --features=embassy,embassy-time-timg0,async
|
||||||
|
# Ensure documentation can be built
|
||||||
|
- name: rustdoc
|
||||||
|
run: cd esp32s2-hal/ && cargo doc
|
||||||
|
|
||||||
esp32s3-hal:
|
esp32s3-hal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -315,6 +340,9 @@ jobs:
|
|||||||
run: cd esp32s3-hal/ && cargo check --example=embassy_i2c --features=embassy,embassy-time-timg0,async
|
run: cd esp32s3-hal/ && cargo check --example=embassy_i2c --features=embassy,embassy-time-timg0,async
|
||||||
- name: check esp32s3-hal (octal psram)
|
- name: check esp32s3-hal (octal psram)
|
||||||
run: cd esp32s3-hal/ && cargo check --example=octal_psram --features=opsram_2m --release # This example requires release!
|
run: cd esp32s3-hal/ && cargo check --example=octal_psram --features=opsram_2m --release # This example requires release!
|
||||||
|
# Ensure documentation can be built
|
||||||
|
- name: rustdoc
|
||||||
|
run: cd esp32s3-hal/ && cargo doc
|
||||||
|
|
||||||
esp-riscv-rt:
|
esp-riscv-rt:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -332,6 +360,9 @@ jobs:
|
|||||||
run: cd esp-riscv-rt/ && cargo check --target=riscv32imc-unknown-none-elf -Zbuild-std=core
|
run: cd esp-riscv-rt/ && cargo check --target=riscv32imc-unknown-none-elf -Zbuild-std=core
|
||||||
- name: Check esp-riscv-rt (imac)
|
- name: Check esp-riscv-rt (imac)
|
||||||
run: cd esp-riscv-rt/ && cargo check --target=riscv32imac-unknown-none-elf -Zbuild-std=core
|
run: cd esp-riscv-rt/ && cargo check --target=riscv32imac-unknown-none-elf -Zbuild-std=core
|
||||||
|
# Ensure documentation can be built
|
||||||
|
- name: rustdoc
|
||||||
|
run: cd esp-riscv-rt/ && cargo doc
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# MSRV
|
# MSRV
|
||||||
|
@ -58,9 +58,6 @@ use core::{
|
|||||||
// toml file then `InternalContext` will be either undefined or multiple
|
// toml file then `InternalContext` will be either undefined or multiple
|
||||||
// defined and this module will fail to compile letting you know to fix it
|
// defined and this module will fail to compile letting you know to fix it
|
||||||
|
|
||||||
#[cfg(doc)]
|
|
||||||
struct InternalContext;
|
|
||||||
|
|
||||||
#[cfg(rom_md5_bsd)]
|
#[cfg(rom_md5_bsd)]
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user