| { | |
| "configs": [ | |
| { | |
| "name": "bazel_default", | |
| "description": "Default bazel build configuration (usually host)", | |
| "build_type": "bazel", | |
| "args": [], | |
| "env": {} | |
| } | |
| ], | |
| "builds": [ | |
| { | |
| "name": "host", | |
| "build_config": { | |
| "name": "build_only_host_config", | |
| "description": "Host build", | |
| "build_type": "bazel", | |
| "driver_options": { | |
| "@type": "pw.build.proto.BazelDriverOptions", | |
| "no_test": true | |
| } | |
| }, | |
| "targets": [ | |
| "//...", | |
| "//examples/01_blinky:blinky", | |
| "//examples/01_blinky:rp2040_blinky.elf", | |
| "//examples/01_blinky:simulator_blinky", | |
| "//examples/01_blinky:simulator_console", | |
| "//examples/01_blinky:stm32_blinky.elf", | |
| "//examples/02_unit_testing:rp2040_test_runner_app.elf", | |
| "//examples/02_unit_testing:stm32_test_runner_app.elf", | |
| "//examples/02_unit_testing:test_runner_app", | |
| "//examples/03_rpc:rp2040_rpc_main.elf", | |
| "//examples/03_rpc:rpc_main", | |
| "//examples/03_rpc:simulator_console", | |
| "//examples/03_rpc:simulator_rpc", | |
| "//examples/03_rpc:stm32_rpc_main.elf", | |
| "//tools:console", | |
| "//tools:device_sim" | |
| ] | |
| }, | |
| { | |
| "name": "clang_tidy", | |
| "build_config": { | |
| "name": "clang_tidy_config", | |
| "description": "Clang-Tidy config", | |
| "build_type": "bazel", | |
| "args": [ | |
| "--config=clang-tidy" | |
| ], | |
| "env": {}, | |
| "driver_options": { | |
| "@type": "pw.build.proto.BazelDriverOptions", | |
| "no_test": true | |
| } | |
| }, | |
| "targets": [ | |
| "//..." | |
| ] | |
| } | |
| ], | |
| "tools": [ | |
| { | |
| "name": "format", | |
| "description": "Find and fix code formatting issues", | |
| "use_config": "bazel_default", | |
| "analyzer_friendly_args": [ | |
| "--check" | |
| ], | |
| "target": "@pigweed//pw_presubmit/py:format" | |
| } | |
| ], | |
| "groups": [ | |
| { | |
| "name": "default", | |
| "description": "Quick presubmit for validating code changes locally", | |
| "analyzers": [ | |
| "format" | |
| ], | |
| "builds": [ | |
| "host", | |
| "clang_tidy" | |
| ] | |
| } | |
| ] | |
| } |