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:
Jesse Braham 2023-07-17 07:33:58 -07:00 committed by GitHub
parent 37466fd9c7
commit 31f7b974fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 4 deletions

View File

@ -4,7 +4,11 @@ on:
pull_request:
branches:
- main
paths-ignore:
- "**/README.md"
push:
paths-ignore:
- "**/README.md"
workflow_dispatch:
env:
@ -21,7 +25,7 @@ concurrency:
jobs:
# --------------------------------------------------------------------------
# Check
# Check Packages
esp-hal-smartled:
runs-on: ubuntu-latest
@ -53,6 +57,9 @@ jobs:
run: cd esp-hal-smartled/ && cargo +esp check --features=esp32s2
- name: check (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:
runs-on: ubuntu-latest
@ -84,6 +91,9 @@ jobs:
run: cd esp32-hal/ && cargo check --example=embassy_serial --features=embassy,embassy-time-timg0,async
- name: check esp32-hal (async, i2c)
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:
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
- name: check esp32c2-hal (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:
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
- name: check esp32c3-hal (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:
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
- name: check esp32c6-hal (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:
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
- name: check esp32h2-hal (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:
runs-on: ubuntu-latest
@ -276,6 +298,9 @@ jobs:
run: cd esp32s2-hal/ && cargo check --example=embassy_serial --features=embassy,embassy-time-timg0,async
- name: check esp32s2-hal (async, i2c)
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:
runs-on: ubuntu-latest
@ -315,6 +340,9 @@ jobs:
run: cd esp32s3-hal/ && cargo check --example=embassy_i2c --features=embassy,embassy-time-timg0,async
- name: check esp32s3-hal (octal psram)
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:
runs-on: ubuntu-latest
@ -332,6 +360,9 @@ jobs:
run: cd esp-riscv-rt/ && cargo check --target=riscv32imc-unknown-none-elf -Zbuild-std=core
- name: Check esp-riscv-rt (imac)
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

View File

@ -58,9 +58,6 @@ use core::{
// toml file then `InternalContext` will be either undefined or multiple
// defined and this module will fail to compile letting you know to fix it
#[cfg(doc)]
struct InternalContext;
#[cfg(rom_md5_bsd)]
#[derive(Clone)]
#[repr(C)]