mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
add clang-tidy for zephyr
This commit is contained in:
parent
58dc8445f9
commit
f3eec64928
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
|
name: Run script/clang-tidy for ESP32 IDF
|
||||||
options: --environment esp32-idf-tidy --grep USE_ESP_IDF
|
options: --environment esp32-idf-tidy --grep USE_ESP_IDF
|
||||||
pio_cache_key: tidyesp32-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:
|
steps:
|
||||||
- name: Check out code from GitHub
|
- name: Check out code from GitHub
|
||||||
|
@ -26,7 +26,7 @@ void Logger::loop() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (false == opened) {
|
if (!opened) {
|
||||||
App.schedule_dump_config();
|
App.schedule_dump_config();
|
||||||
}
|
}
|
||||||
opened = !opened;
|
opened = !opened;
|
||||||
|
@ -47,7 +47,7 @@ void loop();
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
setup();
|
setup();
|
||||||
while (1) {
|
while (true) {
|
||||||
loop();
|
loop();
|
||||||
esphome::yield();
|
esphome::yield();
|
||||||
}
|
}
|
||||||
|
@ -391,3 +391,11 @@ build_flags =
|
|||||||
${common.build_flags}
|
${common.build_flags}
|
||||||
-DUSE_HOST
|
-DUSE_HOST
|
||||||
-std=c++17
|
-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…
x
Reference in New Issue
Block a user