Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test BCR with Bazel 6.5.0 and 7.0.2 #1744

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ matrix:
platform:
- ubuntu2204
- macos
bazel: [6.5.0, 7.0.2]

tasks:
ubuntu2204:
name: Ubuntu 22.04 with WORKSPACE
platform: ubuntu2204
bazel: ${{ bazel }}
build_flags:
- "--noexperimental_enable_bzlmod"
test_flags:
Expand All @@ -23,6 +25,7 @@ tasks:
ubuntu2204_bzlmod:
name: Ubuntu 22.04 with Bzlmod
platform: ubuntu2204
bazel: ${{ bazel }}
build_targets:
- "..."
run_targets:
Expand All @@ -36,6 +39,7 @@ tasks:
bcr_tests:
name: BCR test module
platform: ${{ platform }}
bazel: ${{ bazel }}
working_directory: tests/bcr
shell_commands:
# Regenerate the BUILD files for the test module using Gazelle.
Expand All @@ -55,6 +59,7 @@ tasks:
bcr_test_windows:
name: BCR test on Windows
platform: windows
bazel: ${{ bazel }}
working_directory: tests/bcr
shell_commands:
# Regenerate the BUILD file for the test module using Gazelle.
Expand All @@ -80,6 +85,7 @@ tasks:
macos_arm64_bzlmod:
name: Mac OS Arm 64 with Bzlmod
platform: macos_arm64
bazel: ${{ bazel }}
build_targets:
- "..."
test_targets:
Expand All @@ -88,6 +94,7 @@ tasks:
- "-//cmd/gazelle:gazelle_test"
macos_arm64:
name: Mac OS Arm 64 with WORKSPACE
bazel: ${{ bazel }}
platform: macos_arm64
build_flags:
- "--noexperimental_enable_bzlmod"
Expand All @@ -100,6 +107,7 @@ tasks:
macos_bzlmod:
name: Mac OS with Bzlmod
platform: macos
bazel: ${{ bazel }}
build_targets:
- "..."
test_targets:
Expand All @@ -108,6 +116,8 @@ tasks:
- "-//cmd/gazelle:gazelle_test"
macos:
name: Mac OS with WORKSPACE
platform: macos
bazel: ${{ bazel }}
build_flags:
- "--noexperimental_enable_bzlmod"
test_flags:
Expand All @@ -119,6 +129,7 @@ tasks:
windows_bzlmod:
name: Windows with Bzlmod
platform: windows
bazel: ${{ bazel }}
build_targets:
- "--"
- "..."
Expand All @@ -142,6 +153,7 @@ tasks:
windows:
name: Windows with WORKSPACE
platform: windows
bazel: ${{ bazel }}
build_flags:
- "--noexperimental_enable_bzlmod"
test_flags:
Expand All @@ -168,6 +180,7 @@ tasks:
incompatible:
name: Ubuntu 22.04 with WORKSPACE and --config=incompatible
platform: ubuntu2204
bazel: 7.0.2
build_flags:
- "--noexperimental_enable_bzlmod"
- "--config=incompatible"
Expand Down
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.0.2
2 changes: 2 additions & 0 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ bcr_test_module:
- ubuntu2004
- macos
- windows
bazel: [6.x, 7.x]
tasks:
run_test_module:
name: Run test module
platform: ${{ platform }}
bazel: ${{ bazel }}
shell_commands:
# Regenerate the BUILD files for the test module using Gazelle.
- rm pkg/BUILD.bazel proto/BUILD.bazel
Expand Down
2 changes: 1 addition & 1 deletion tests/bcr/.bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0
7.0.2
Loading