Skip to content

Commit

Permalink
Set default bazel versions to be tested
Browse files Browse the repository at this point in the history
Adding `7.x` and `6.x` as default Bazel versions to be tested in the generated presubmit.yml file.
  • Loading branch information
meteorcloudy authored Jan 24, 2024
1 parent 47d145a commit ddbdd8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,14 +385,17 @@ def add(self, module, override=False):
shutil.copy(module.presubmit_yml, presubmit_yml)
else:
PLATFORMS = ["debian10", "ubuntu2004", "macos", "macos_arm64", "windows"]
BAZEL_VERSIONS = ["7.x", "6.x"]
presubmit = {
"matrix": {
"platform": PLATFORMS.copy(),
"bazel": BAZEL_VERSIONS.copy(),
},
"tasks": {
"verify_targets": {
"name": "Verify build targets",
"platform": "${{ platform }}",
"bazel": "${{ bazel }}",
"build_targets": module.build_targets.copy()
}
}
Expand All @@ -402,6 +405,7 @@ def add(self, module, override=False):
task = {
"name": "Run test module",
"platform": "${{ platform }}",
"bazel": "${{ bazel }}",
}
if module.test_module_build_targets:
task["build_targets"] = module.test_module_build_targets.copy()
Expand Down

0 comments on commit ddbdd8f

Please sign in to comment.