| { |
| "configs": [ |
| { |
| "name": "bazel_default", |
| "description": "Default bazel build configuration", |
| "build_type": "bazel", |
| "args": [ |
| "--test_output=all" |
| ], |
| "env": {} |
| }, |
| { |
| "name": "bazel_default_notest", |
| "description": "Default bazel build configuration", |
| "build_type": "bazel", |
| "args": [ |
| "--keep_going", |
| "--build_tag_filters=-hardware,-disabled" |
| ], |
| "env": {}, |
| "driver_options": { |
| "@type": "pw.build.proto.BazelDriverOptions", |
| "no_test": true |
| } |
| } |
| ], |
| "builds": [ |
| { |
| "name": "wildcard_build", |
| "use_config": "bazel_default_notest", |
| "targets": [ |
| "//..." |
| ] |
| }, |
| { |
| "name": "clippy", |
| "build_config": { |
| "name": "clippy_config", |
| "description": "Run clippy checks", |
| "build_type": "bazel", |
| "args": [ |
| "--aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect", |
| "--output_groups=clippy_checks" |
| ], |
| "driver_options": { |
| "@type": "pw.build.proto.BazelDriverOptions", |
| "no_test": true |
| } |
| }, |
| "targets": [ |
| "//..." |
| ] |
| }, |
| { |
| "name": "ci_tests", |
| "build_config": { |
| "name": "ci_tests_config", |
| "description": "Execute CI tests (excluding hardware and heavyweight simulator tests)", |
| "build_type": "bazel", |
| "args": [ |
| "--keep_going", |
| "--build_tag_filters=-hardware,-disabled,-verilator", |
| "--test_tag_filters=-hardware,-disabled,-verilator", |
| "--test_output=streamed" |
| ], |
| "driver_options": { |
| "@type": "pw.build.proto.BazelDriverOptions", |
| "no_test": false |
| } |
| }, |
| "targets": [ |
| "//..." |
| ] |
| }, |
| { |
| "name": "earlgrey_verilator_tests", |
| "build_config": { |
| "name": "earlgrey_verilator_tests_config", |
| "description": "Run Earlgrey verilator-based tests", |
| "build_type": "bazel", |
| "args": [ |
| "--keep_going", |
| "--build_tag_filters=+verilator", |
| "--test_tag_filters=+verilator", |
| "--test_output=streamed" |
| ], |
| "driver_options": { |
| "@type": "pw.build.proto.BazelDriverOptions", |
| "no_test": false |
| } |
| }, |
| "targets": [ |
| "//target/earlgrey/..." |
| ] |
| } |
| ], |
| "tools": [ |
| { |
| "name": "format", |
| "description": "Find and fix code formatting issues", |
| "use_config": "bazel_default", |
| "analyzer_friendly_args": [ |
| "--check" |
| ], |
| "target": "//:format" |
| }, |
| { |
| "name": "presubmit_checks", |
| "description": "Run the presubmit checks", |
| "use_config": "bazel_default", |
| "target": "//presubmit:presubmit", |
| "type": "ANALYZER" |
| } |
| ], |
| "groups": [ |
| { |
| "name": "presubmit", |
| "description": "Quick presubmit for validating code changes locally", |
| "analyzers": [ |
| "format", |
| "presubmit_checks" |
| ], |
| "builds": [ |
| "clippy" |
| ] |
| }, |
| { |
| "name": "default", |
| "description": "Common builds/configurations", |
| "builds": [ |
| "wildcard_build" |
| ] |
| }, |
| { |
| "name": "ci", |
| "description": "Execute CI tests (excluding hardware and heavyweight simulator tests)", |
| "builds": [ |
| "ci_tests" |
| ] |
| }, |
| { |
| "name": "upstream_pigweed", |
| "description": "Workflow for checking upstream pigweed compatibility", |
| "builds": [ |
| "ci_tests", |
| "earlgrey_verilator_tests" |
| ] |
| } |
| ] |
| } |