| { | |
| "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": [ | |
| "//...", | |
| "-//third_party/caliptra/..." | |
| ] | |
| }, | |
| { | |
| "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": [ | |
| "//...", | |
| "-//third_party/caliptra/..." | |
| ] | |
| }, | |
| { | |
| "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,-emulator,-qemu", | |
| "--test_tag_filters=-hardware,-disabled,-verilator,-emulator,-qemu", | |
| "--test_output=streamed" | |
| ], | |
| "driver_options": { | |
| "@type": "pw.build.proto.BazelDriverOptions", | |
| "no_test": false | |
| } | |
| }, | |
| "targets": [ | |
| "//...", | |
| "-//third_party/caliptra/..." | |
| ] | |
| }, | |
| { | |
| "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,-nightly_test", | |
| "--test_tag_filters=+verilator,-nightly_test", | |
| "--test_output=streamed" | |
| ], | |
| "driver_options": { | |
| "@type": "pw.build.proto.BazelDriverOptions", | |
| "no_test": false | |
| } | |
| }, | |
| "targets": [ | |
| "//target/earlgrey/..." | |
| ] | |
| }, | |
| { | |
| "name": "caliptra_emulator_tests", | |
| "build_config": { | |
| "name": "caliptra_emulator_tests_config", | |
| "description": "Run caliptra emulator-based tests", | |
| "build_type": "bazel", | |
| "args": [ | |
| "--keep_going", | |
| "--build_tag_filters=+emulator,-disabled", | |
| "--test_tag_filters=+emulator,-disabled", | |
| "--test_output=streamed" | |
| ], | |
| "driver_options": { | |
| "@type": "pw.build.proto.BazelDriverOptions", | |
| "no_test": false | |
| } | |
| }, | |
| "targets": [ | |
| "//target/veer/..." | |
| ] | |
| }, | |
| { | |
| "name": "caliptra_fpga_build", | |
| "build_config": { | |
| "name": "caliptra_fpga_build_config", | |
| "description": "Build (do not run) the Caliptra MCU fpga target image. Catches fpga cfg/build-wiring regressions without requiring lab hardware; actually running it needs a VCK190 board (see //target/veer/unittest_runner:fpga_test, tagged manual).", | |
| "build_type": "bazel", | |
| "args": [ | |
| "--keep_going", | |
| "--config=k_veer", | |
| "--//target/veer:target_type=fpga" | |
| ], | |
| "driver_options": { | |
| "@type": "pw.build.proto.BazelDriverOptions", | |
| "no_test": true | |
| } | |
| }, | |
| "targets": [ | |
| "//target/veer/unittest_runner:fpga_test" | |
| ] | |
| }, | |
| { | |
| "name": "earlgrey_qemu_tests", | |
| "build_config": { | |
| "name": "earlgrey_qemu_tests_config", | |
| "description": "Run Earlgrey QEMU-based tests", | |
| "build_type": "bazel", | |
| "args": [ | |
| "--keep_going", | |
| "--build_tag_filters=+qemu", | |
| "--test_tag_filters=+qemu", | |
| "--test_output=streamed" | |
| ], | |
| "driver_options": { | |
| "@type": "pw.build.proto.BazelDriverOptions", | |
| "no_test": false | |
| } | |
| }, | |
| "targets": [ | |
| "//target/earlgrey/..." | |
| ] | |
| }, | |
| { | |
| "name": "ast10x0_qemu_tests", | |
| "build_config": { | |
| "name": "ast10x0_qemu_tests_config", | |
| "description": "Run AST10x0 QEMU-based tests", | |
| "build_type": "bazel", | |
| "args": [ | |
| "--keep_going", | |
| "--config=virt_ast10x0", | |
| "--test_tag_filters=-hardware,-do_not_run_test", | |
| "--test_output=streamed" | |
| ], | |
| "driver_options": { | |
| "@type": "pw.build.proto.BazelDriverOptions", | |
| "no_test": false | |
| } | |
| }, | |
| "targets": [ | |
| "//target/ast10x0/..." | |
| ] | |
| } | |
| ], | |
| "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 plus dedicated AST10x0, Earlgrey QEMU and Caliptra emulator coverage", | |
| "builds": [ | |
| "ci_tests", | |
| "ast10x0_qemu_tests", | |
| "earlgrey_qemu_tests", | |
| "caliptra_emulator_tests", | |
| "caliptra_fpga_build" | |
| ] | |
| }, | |
| { | |
| "name": "upstream_pigweed", | |
| "description": "Workflow for checking upstream pigweed compatibility", | |
| "builds": [ | |
| "ci_tests", | |
| "ast10x0_qemu_tests", | |
| "caliptra_emulator_tests", | |
| "earlgrey_verilator_tests" | |
| ] | |
| } | |
| ] | |
| } |