add clang-tidy for zephyr

This commit is contained in:
Tomasz Duda 2024-07-23 00:06:06 +02:00
parent 58dc8445f9
commit f3eec64928
4 changed files with 14 additions and 2 deletions

View file

@ -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

View file

@ -26,7 +26,7 @@ void Logger::loop() {
return;
}
if (false == opened) {
if (!opened) {
App.schedule_dump_config();
}
opened = !opened;

View file

@ -47,7 +47,7 @@ void loop();
int main() {
setup();
while (1) {
while (true) {
loop();
esphome::yield();
}

View file

@ -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