From eff4cbb0f11290ff13f26f2f79afefbe3d0aa90b Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Sun, 23 Nov 2025 08:41:07 +0100 Subject: [PATCH] Add BCR publishing configuration for brotli and brotli_go modules Signed-off-by: Matthieu MOREL --- .bcr/go/presubmit.yml | 15 ++++++++++++++- .bcr/presubmit.yml | 34 +++++++++++++++++++++++++++------- 2 files changed, 41 insertions(+), 8 deletions(-) diff --git a/.bcr/go/presubmit.yml b/.bcr/go/presubmit.yml index 2ec2e86..3e3aa53 100644 --- a/.bcr/go/presubmit.yml +++ b/.bcr/go/presubmit.yml @@ -7,7 +7,6 @@ matrix: bazel: - 8.x - 7.x - - 6.x tasks: verify_targets: name: Verify build targets @@ -15,5 +14,19 @@ tasks: bazel: ${{ bazel }} build_targets: - '@brotli_go//cbrotli' + build_flags: + - "--conlyopt=-Wno-error=conversion" + - "--conlyopt=-Wno-error=sign-conversion" + - "--copt=-Wno-error=conversion" + - "--copt=-Wno-error=sign-conversion" + - "--host_conlyopt=-Wno-error=conversion" + - "--host_copt=-Wno-error=conversion" test_targets: - '@brotli_go//cbrotli:cbrotli_test' + test_flags: + - "--conlyopt=-Wno-error=conversion" + - "--conlyopt=-Wno-error=sign-conversion" + - "--copt=-Wno-error=conversion" + - "--copt=-Wno-error=sign-conversion" + - "--host_conlyopt=-Wno-error=conversion" + - "--host_copt=-Wno-error=conversion" \ No newline at end of file diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml index 318a904..9e53079 100644 --- a/.bcr/presubmit.yml +++ b/.bcr/presubmit.yml @@ -4,18 +4,38 @@ matrix: - ubuntu2004 - macos - macos_arm64 - - windows bazel: - - 8.x - 7.x - - 6.x + - 8.x tasks: verify_targets: name: Verify build targets platform: ${{ platform }} bazel: ${{ bazel }} build_targets: - - '@brotli//:brotli' - - '@brotli//:brotlicommon' - - '@brotli//:brotlidec' - - '@brotli//:brotlienc' + - '@brotli//:brotli' + - '@brotli//:brotlicommon' + - '@brotli//:brotlidec' + - '@brotli//:brotlienc' + build_flags: + - "--cxxopt=-std=c++17" + - "--conlyopt=-Wno-error=conversion" + - "--conlyopt=-Wno-error=sign-conversion" + - "--copt=-Wno-error=conversion" + - "--copt=-Wno-error=sign-conversion" + - "--host_conlyopt=-Wno-error=conversion" + - "--host_copt=-Wno-error=conversion" + verify_targets_windows: + name: Verify build targets + platform: windows + bazel: ${{ bazel }} + build_flags: + - "--cxxopt=/std:c++17" + - "--cxxopt=/D_WIN32_WINNT=0x0602" + - "--cxxopt=/DWINVER=0x0602" + - "--host_cxxopt=/std:c++17" + build_targets: + - '@brotli//:brotli' + - '@brotli//:brotlicommon' + - '@brotli//:brotlidec' + - '@brotli//:brotlienc' \ No newline at end of file