mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
add clang-tidy for zephyr
This commit is contained in:
parent
58dc8445f9
commit
f3eec64928
4 changed files with 14 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -289,6 +289,10 @@ jobs:
|
|||
name: Run script/clang-tidy for ESP32 IDF
|
||||
options: --environment esp32-idf-tidy --grep USE_ESP_IDF
|
||||
pio_cache_key: tidyesp32-idf
|
||||
- id: clang-tidy
|
||||
name: Run script/clang-tidy for ZEPHYR
|
||||
options: --environment nrf52 --grep USE_ZEPHYR
|
||||
pio_cache_key: tidy-zephyr
|
||||
|
||||
steps:
|
||||
- name: Check out code from GitHub
|
||||
|
|
|
@ -26,7 +26,7 @@ void Logger::loop() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (false == opened) {
|
||||
if (!opened) {
|
||||
App.schedule_dump_config();
|
||||
}
|
||||
opened = !opened;
|
||||
|
|
|
@ -47,7 +47,7 @@ void loop();
|
|||
|
||||
int main() {
|
||||
setup();
|
||||
while (1) {
|
||||
while (true) {
|
||||
loop();
|
||||
esphome::yield();
|
||||
}
|
||||
|
|
|
@ -391,3 +391,11 @@ build_flags =
|
|||
${common.build_flags}
|
||||
-DUSE_HOST
|
||||
-std=c++17
|
||||
|
||||
[env:nrf52]
|
||||
extends = common
|
||||
platform = platformio/nordicnrf52@10.3.0
|
||||
platform_packages =
|
||||
platformio/framework-zephyr @ https://github.com/tomaszduda23/framework-sdk-nrf
|
||||
platformio/toolchain-gccarmnoneeabi@https://github.com/tomaszduda23/toolchain-sdk-ng
|
||||
board = adafruit_feather_nrf52840
|
||||
|
|
Loading…
Reference in a new issue