Skip to content

Commit

Permalink
Try CI flags
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Nov 15, 2024
1 parent 8a3208f commit 0a1946e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ tasks:
bazel: 6.5.0 # test minimum supported version of bazel
build_targets:
- "//..."
build_flags:
- "--per_file_copt=external/.*@-w"
- "--host_per_file_copt=external/.*@-w"
test_targets:
- "//..."
# Nogo includes/excludes doesn't work before bazel 7
Expand All @@ -21,6 +24,9 @@ tasks:
- "-//tests/runfiles:runfiles_test"
# TODO: Investigate why this fails.
- "-//tests/core/starlark/cgo:missing_cc_toolchain_explicit_pure_off_test"
test_flags:
- "--per_file_copt=external/.*@-w"
- "--host_per_file_copt=external/.*@-w"
ubuntu2004:
# enable some unflipped incompatible flags on this platform to ensure we don't regress.
build_flags:
Expand Down
3 changes: 0 additions & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ common --enable_platform_specific_config
common --noexperimental_enable_bzlmod
test --test_output=errors

# Disable warnings in external code.
build --per_file_copt=external/.*@-w

# Go requires a C toolchain that accepts options and emits errors like
# gcc or clang. The Go SDK does not support MSVC.
build:windows --cpu=x64_windows
Expand Down

0 comments on commit 0a1946e

Please sign in to comment.