Skip to content

Commit eff4cbb

Browse files
committed
Add BCR publishing configuration for brotli and brotli_go modules
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent 5251c3c commit eff4cbb

File tree

2 files changed

+41
-8
lines changed

2 files changed

+41
-8
lines changed

.bcr/go/presubmit.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,26 @@ matrix:
77
bazel:
88
- 8.x
99
- 7.x
10-
- 6.x
1110
tasks:
1211
verify_targets:
1312
name: Verify build targets
1413
platform: ${{ platform }}
1514
bazel: ${{ bazel }}
1615
build_targets:
1716
- '@brotli_go//cbrotli'
17+
build_flags:
18+
- "--conlyopt=-Wno-error=conversion"
19+
- "--conlyopt=-Wno-error=sign-conversion"
20+
- "--copt=-Wno-error=conversion"
21+
- "--copt=-Wno-error=sign-conversion"
22+
- "--host_conlyopt=-Wno-error=conversion"
23+
- "--host_copt=-Wno-error=conversion"
1824
test_targets:
1925
- '@brotli_go//cbrotli:cbrotli_test'
26+
test_flags:
27+
- "--conlyopt=-Wno-error=conversion"
28+
- "--conlyopt=-Wno-error=sign-conversion"
29+
- "--copt=-Wno-error=conversion"
30+
- "--copt=-Wno-error=sign-conversion"
31+
- "--host_conlyopt=-Wno-error=conversion"
32+
- "--host_copt=-Wno-error=conversion"

.bcr/presubmit.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,38 @@ matrix:
44
- ubuntu2004
55
- macos
66
- macos_arm64
7-
- windows
87
bazel:
9-
- 8.x
108
- 7.x
11-
- 6.x
9+
- 8.x
1210
tasks:
1311
verify_targets:
1412
name: Verify build targets
1513
platform: ${{ platform }}
1614
bazel: ${{ bazel }}
1715
build_targets:
18-
- '@brotli//:brotli'
19-
- '@brotli//:brotlicommon'
20-
- '@brotli//:brotlidec'
21-
- '@brotli//:brotlienc'
16+
- '@brotli//:brotli'
17+
- '@brotli//:brotlicommon'
18+
- '@brotli//:brotlidec'
19+
- '@brotli//:brotlienc'
20+
build_flags:
21+
- "--cxxopt=-std=c++17"
22+
- "--conlyopt=-Wno-error=conversion"
23+
- "--conlyopt=-Wno-error=sign-conversion"
24+
- "--copt=-Wno-error=conversion"
25+
- "--copt=-Wno-error=sign-conversion"
26+
- "--host_conlyopt=-Wno-error=conversion"
27+
- "--host_copt=-Wno-error=conversion"
28+
verify_targets_windows:
29+
name: Verify build targets
30+
platform: windows
31+
bazel: ${{ bazel }}
32+
build_flags:
33+
- "--cxxopt=/std:c++17"
34+
- "--cxxopt=/D_WIN32_WINNT=0x0602"
35+
- "--cxxopt=/DWINVER=0x0602"
36+
- "--host_cxxopt=/std:c++17"
37+
build_targets:
38+
- '@brotli//:brotli'
39+
- '@brotli//:brotlicommon'
40+
- '@brotli//:brotlidec'
41+
- '@brotli//:brotlienc'

0 commit comments

Comments
 (0)