Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- name: Presubmit Checks
# The presubmit workflow performs formatting checks, license checks
# C/C++ include checks and clippy lints.
# See workflows.json for the `presubmit` definition.
run: ./pw presubmit

test:
Expand All @@ -46,13 +47,8 @@ jobs:
repository-cache: true

- name: Run tests
run: |
bazel test \
--keep_going \
--test_output=streamed \
--build_tag_filters=-hardware,-disabled \
--test_tag_filters=-hardware,-disabled \
//...
# See workflows.json for the `ci` definition.
run: ./pw ci

build:
name: Build Targets
Expand All @@ -70,11 +66,8 @@ jobs:
repository-cache: true

- name: Build
run: |
bazel build \
--keep_going \
--build_tag_filters=-hardware,-disabled \
//...
# See workflows.json for the `default` definition.
run: ./pw default

security-audit:
name: Security Audit
Expand Down
63 changes: 53 additions & 10 deletions workflows.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"name": "bazel_default_notest",
"description": "Default bazel build configuration",
"build_type": "bazel",
"args": [],
"args": [
"--keep_going",
"--build_tag_filters=-hardware,-disabled"
],
"env": {},
"driver_options": {
"@type": "pw.build.proto.BazelDriverOptions",
Expand Down Expand Up @@ -49,11 +52,45 @@
]
},
{
"name": "verilator_tests",
"use_config": "bazel_default",
"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/threads/kernel:threads_runner_verilator_test",
"//target/earlgrey/ipc/user:ipc_runner_verilator_test"
"//target/earlgrey/..."
]
}
],
Expand Down Expand Up @@ -95,12 +132,18 @@
]
},
{
"name": "earlgrey",
"description": "Quick presubmit for validating code changes locally",
"name": "ci",
"description": "Execute CI tests (excluding hardware and heavyweight simulator tests)",
"builds": [
"format",
"wildcard_build",
"verilator_tests"
"ci_tests"
]
},
{
"name": "upstream_pigweed",
"description": "Workflow for checking upstream pigweed compatibility",
"builds": [
"ci_tests",
"earlgrey_verilator_tests"
]
}
]
Expand Down