Skip to content

Commit

Permalink
Update the CI workflow to check the chip-specific HAL packages withou…
Browse files Browse the repository at this point in the history
…t default features
  • Loading branch information
jessebraham committed Jan 2, 2024
1 parent d7bb3e2 commit 37e8b51
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ jobs:
cargo check --examples --features=embassy,embassy-time-timg0,embassy-executor-interrupt,embassy-executor-thread,log
- name: check esp32-hal (psram)
run: cd esp32-hal/ && cargo check --example=psram --features=psram-2m --release # This example requires release!
# Make sure we can build without default features enabled, too!
- name: check esp32-hal (no default features)
run: cd esp32-hal/ && cargo build --no-default-features --features=xtal-40mhz
# Ensure documentation can be built
- name: rustdoc
run: cd esp32-hal/ && cargo doc --features=eh1
Expand Down Expand Up @@ -209,6 +212,9 @@ jobs:
cd esp32c2-hal/
cargo +nightly check --examples --features=embassy,embassy-time-timg0,embassy-executor-thread,defmt
cargo +nightly check --examples --features=embassy,embassy-time-timg0,embassy-executor-thread,log
# Make sure we can build without default features enabled, too!
- name: check esp32c2-hal (no default features)
run: cd esp32c2-hal/ && cargo build --no-default-features --features=xtal-40mhz
# Ensure documentation can be built
- name: rustdoc
run: cd esp32c2-hal/ && cargo doc --features=eh1
Expand Down Expand Up @@ -263,6 +269,9 @@ jobs:
cd esp32c3-hal/
cargo +nightly check --examples --features=embassy,embassy-time-timg0,embassy-executor-thread,defmt
cargo +nightly check --examples --features=embassy,embassy-time-timg0,embassy-executor-thread,log
# Make sure we can build without default features enabled, too!
- name: check esp32c3-hal (no default features)
run: cd esp32c3-hal/ && cargo build --no-default-features
# Ensure documentation can be built
- name: rustdoc
run: cd esp32c3-hal/ && cargo doc --features=eh1
Expand Down Expand Up @@ -328,6 +337,9 @@ jobs:
cd esp32c6-hal/
cargo +nightly check --examples --features=embassy,embassy-time-timg0,embassy-executor-thread,defmt
cargo +nightly check --examples --features=embassy,embassy-time-timg0,embassy-executor-thread,log
# Make sure we can build without default features enabled, too!
- name: check esp32c6-hal (no default features)
run: cd esp32c6-hal/ && cargo build --no-default-features
# Ensure documentation can be built
- name: rustdoc
run: cd esp32c6-hal/ && cargo doc --features=eh1
Expand Down Expand Up @@ -408,6 +420,9 @@ jobs:
cd esp32h2-hal/
cargo +nightly check --examples --features=embassy,embassy-time-timg0,embassy-executor-thread,defmt
cargo +nightly check --examples --features=embassy,embassy-time-timg0,embassy-executor-thread,log
# Make sure we can build without default features enabled, too!
- name: check esp32h2-hal (no default features)
run: cd esp32h2-hal/ && cargo build --no-default-features
# Ensure documentation can be built
- name: rustdoc
run: cd esp32h2-hal/ && cargo doc --features=eh1
Expand Down Expand Up @@ -483,6 +498,9 @@ jobs:
cargo +esp check --examples --features=embassy,embassy-time-timg0,embassy-executor-interrupt,embassy-executor-thread,log
- name: check esp32s2-hal (psram)
run: cd esp32s2-hal/ && cargo +esp check --example=psram --features=psram-2m --release # This example requires release!
# Make sure we can build without default features enabled, too!
- name: check esp32s2-hal (no default features)
run: cd esp32s2-hal/ && cargo build --no-default-features
# Ensure documentation can be built
- name: rustdoc
run: cd esp32s2-hal/ && cargo +esp doc --features=eh1
Expand Down Expand Up @@ -565,6 +583,9 @@ jobs:
cd esp32s3-hal/
cargo +esp check --examples --features=embassy,embassy-time-timg0,embassy-executor-interrupt,embassy-executor-thread,defmt
cargo +esp check --examples --features=embassy,embassy-time-timg0,embassy-executor-interrupt,embassy-executor-thread,log
# Make sure we can build without default features enabled, too!
- name: check esp32s3-hal (no default features)
run: cd esp32s3-hal/ && cargo build --no-default-features
# Ensure documentation can be built
- name: rustdoc
run: cd esp32s3-hal/ && cargo doc --features=eh1
Expand Down

0 comments on commit 37e8b51

Please sign in to comment.