Skip to content

Commit

Permalink
Enable the CI feature to check more features in MSRV checks (#1641)
Browse files Browse the repository at this point in the history
* enable the CI feature to check more features in MSRV checks

* Rename eh1 feature in esp-lp-hal
  • Loading branch information
MabezDev authored May 30, 2024
1 parent 4dbe5d3 commit 4d9441e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,13 @@ jobs:
components: rust-src
- uses: Swatinem/rust-cache@v2

# TODO:
# - Enable additional (all?) features for MSRV check

# Verify the MSRV for all RISC-V chips.
- name: msrv (esp-hal)
run: |
cargo xtask build-package --features=esp32c2 --target=riscv32imc-unknown-none-elf esp-hal
cargo xtask build-package --features=esp32c3 --target=riscv32imc-unknown-none-elf esp-hal
cargo xtask build-package --features=esp32c6 --target=riscv32imac-unknown-none-elf esp-hal
cargo xtask build-package --features=esp32h2 --target=riscv32imac-unknown-none-elf esp-hal
cargo xtask build-package --features=esp32c2,ci --target=riscv32imc-unknown-none-elf esp-hal
cargo xtask build-package --features=esp32c3,ci --target=riscv32imc-unknown-none-elf esp-hal
cargo xtask build-package --features=esp32c6,ci --target=riscv32imac-unknown-none-elf esp-hal
cargo xtask build-package --features=esp32h2,ci --target=riscv32imac-unknown-none-elf esp-hal
- name: msrv (esp-lp-hal)
run: |
cargo xtask build-package --features=esp32c6 --target=riscv32imac-unknown-none-elf esp-lp-hal
Expand All @@ -222,9 +219,6 @@ jobs:
env:
RUSTC_BOOTSTRAP: 1

# TODO:
# - Enable additional (all?) features for MSRV check

steps:
- uses: actions/checkout@v4
- uses: esp-rs/[email protected]
Expand All @@ -236,9 +230,9 @@ jobs:
# Verify the MSRV for all Xtensa chips:
- name: msrv (esp-hal)
run: |
cargo xtask build-package --toolchain=esp --features=esp32 --target=xtensa-esp32-none-elf esp-hal
cargo xtask build-package --toolchain=esp --features=esp32s2 --target=xtensa-esp32s2-none-elf esp-hal
cargo xtask build-package --toolchain=esp --features=esp32s3 --target=xtensa-esp32s3-none-elf esp-hal
cargo xtask build-package --toolchain=esp --features=esp32,ci --target=xtensa-esp32-none-elf esp-hal
cargo xtask build-package --toolchain=esp --features=esp32s2,ci --target=xtensa-esp32s2-none-elf esp-hal
cargo xtask build-package --toolchain=esp --features=esp32s3,ci --target=xtensa-esp32s3-none-elf esp-hal
# --------------------------------------------------------------------------
# Lint & Format
Expand Down
1 change: 1 addition & 0 deletions esp-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ ci = [
"async",
"embassy",
"embassy-time-timg0",
"embedded-io"
]

[lints.clippy]
Expand Down
2 changes: 1 addition & 1 deletion esp-lp-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ esp-build = { version = "0.1.0", path = "../esp-build" }
default = ["embedded-hal-02"]

embedded-hal-02 = ["dep:embedded-hal-02"]
embedded-hal-1 = ["dep:embedded-hal-1"]
embedded-hal = ["dep:embedded-hal-1"]

esp32c6 = ["dep:esp32c6-lp", "procmacros/is-lp-core", "dep:nb", "dep:paste"]
esp32s2 = ["dep:esp32s2-ulp", "procmacros/is-ulp-core"]
Expand Down

0 comments on commit 4d9441e

Please sign in to comment.