@@ -24,14 +24,16 @@ jobs:
2424 matrix :
2525 device : [
2626 # RISC-V devices:
27- { soc: "esp32c2", toolchain: "stable" },
28- { soc: "esp32c3", toolchain: "stable" },
29- # { soc: "esp32c5", toolchain: "stable" },
30- { soc: "esp32c6", toolchain: "stable" },
27+ { soc: "esp32c2", board: "esp32c2", target: "riscv32imc-unknown-none-elf", toolchain: "stable", buildstd: "", binlib: "--lib" },
28+ { soc: "esp32c3", board: "esp32c3", target: "riscv32imc-unknown-none-elf", toolchain: "stable", buildstd: "", binlib: "--lib" },
29+ { soc: "esp32c5", board: "board-esp32c5-devkitc", target: "riscv32imac-unknown-none-elf", toolchain: "stable", buildstd: "", binlib: "--bin ssh-stamp-esp32" },
30+ { soc: "esp32c6", board: "board-esp32c6-devkitc", target: "riscv32imac-unknown-none-elf", toolchain: "stable", buildstd: "", binlib: "--bin ssh-stamp-esp32" },
31+ { soc: "esp32c61", board: "board-esp32c61-devkitc", target: "riscv32imac-unknown-none-elf", toolchain: "stable", buildstd: "", binlib: "--bin ssh-stamp-esp32" },
32+ { soc: "esp32c6", board: "board-esp32c6-generic", target: "riscv32imac-unknown-none-elf", toolchain: "stable", buildstd: "", binlib: "--bin ssh-stamp-esp32" },
3133 # Xtensa devices:
32- { soc: "esp32", toolchain: "esp" },
33- { soc: "esp32s2", toolchain: "esp" },
34- { soc: "esp32s3", toolchain: "esp" },
34+ { soc: "esp32", board: "esp32", target: "xtensa-esp32-none-elf", toolchain: "esp", buildstd: "-Z build-std=core,alloc", binlib: "--lib " },
35+ { soc: "esp32s2", board: "board-esp32-s2-saola", target: "xtensa-esp32s2-none-elf", toolchain: "esp", buildstd: "-Z build-std=core,alloc", binlib: "--bin ssh-stamp-esp32 " },
36+ { soc: "esp32s3", board: "esp32s3", target: "xtensa-esp32s3-none-elf", toolchain: "esp", buildstd: "-Z build-std=core,alloc", binlib: "--lib " },
3537 ]
3638 steps :
3739 - name : Cache
@@ -53,12 +55,12 @@ jobs:
5355 version : 1.96.0
5456
5557 - name : Build project
56- run : cargo +${{ matrix.device.toolchain }} build- ${{ matrix.device.soc }}
58+ run : cargo +${{ matrix.device.toolchain }} build --release --target ${{ matrix.device.target }} -p ssh-stamp-esp32 ${{ matrix.device.binlib }} --no-default-features --features ${{ matrix.device.board }} ${{ matrix.device.buildstd }}
5759
5860 - name : Check lints and format
59- if : ${{ contains(fromJson('["esp32c6"]'), matrix.device.soc) }}
61+ if : ${{ matrix.device.board == 'board-esp32c6-devkitc' }}
6062 run : |
61- cargo +${{ matrix.device.toolchain }} clippy --release --features ${{ matrix.device.soc }} --target riscv32imac-unknown-none-elf -p ssh-stamp-esp32 --bin ssh-stamp-esp32 --no-default-features -- -D warnings -A clippy::default_trait_access
63+ cargo +${{ matrix.device.toolchain }} clippy --release --features board-esp32c6-devkitc --target riscv32imac-unknown-none-elf -p ssh-stamp-esp32 --bin ssh-stamp-esp32 --no-default-features -- -D warnings -A clippy::default_trait_access
6264 cargo +${{ matrix.device.toolchain }} fmt -- --check
6365 packer :
6466 name : OTA Packer
0 commit comments