Add presubmit

This commit is contained in:
Armando Montanez 2024-09-06 11:14:48 -07:00
parent 87a3dd9d0e
commit a79b9c4c4b
2 changed files with 11 additions and 0 deletions

View File

@ -51,3 +51,13 @@ tasks:
- "--ignore_dev_dependency" - "--ignore_dev_dependency"
build_targets: build_targets:
- "//cc/..." - "//cc/..."
ubuntu_rule_based_toolchains:
name: Linux rule-based toolchains
platform: ubuntu1804
working_directory: examples/rule_based_toolchain
build_flags:
- "--enable_bzlmod"
build_targets:
- "//..."
test_targets:
- "//..."

View File

@ -17,6 +17,7 @@ cc_args(
"@rules_cc//cc/toolchains/actions:cpp_compile_actions", "@rules_cc//cc/toolchains/actions:cpp_compile_actions",
], ],
args = [ args = [
"-Werror",
"-Wall", "-Wall",
"-Wextra", "-Wextra",
"-Wpedantic", "-Wpedantic",