From b66d3793f5be3f966853775e2c374c6e49cf4dc3 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 23 Jul 2024 12:59:27 +1200 Subject: [PATCH] Create nrf52-tidy env too --- .github/workflows/ci.yml | 2 +- platformio.ini | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38fbfe90ea..0f0e2b168f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -291,7 +291,7 @@ jobs: pio_cache_key: tidyesp32-idf - id: clang-tidy name: Run script/clang-tidy for ZEPHYR - options: --environment nrf52 --grep USE_ZEPHYR + options: --environment nrf52-tidy --grep USE_ZEPHYR pio_cache_key: tidy-zephyr steps: diff --git a/platformio.ini b/platformio.ini index 7a4626c523..1504ce0eff 100644 --- a/platformio.ini +++ b/platformio.ini @@ -404,9 +404,18 @@ build_flags = -DUSE_HOST -std=c++17 +;;;;;;;; nRF52 ;;;;;;;; + [env:nrf52] extends = common:nrf52-zephyr board = adafruit_feather_nrf52840 build_flags = ${common:nrf52-zephyr.build_flags} ${flags:runtime.build_flags} + +[env:nrf52-tidy] +extends = common:nrf52-zephyr +board = adafruit_feather_nrf52840 +build_flags = + ${common:nrf52-zephyr.build_flags} + ${flags:clangtidy.build_flags}