Skip to content

Commit 039ad77

Browse files
committed
build: Upgrade workflows to Bazel 8
- Ask for WORKSPACE support explicitly (now disabled by default). - Remove 'compatibility_level' from module() (now deprecated/no-op).
1 parent ada087b commit 039ad77

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/testing.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
matrix:
8282
bzlmod: [true, false]
8383
env:
84-
USE_BAZEL_VERSION: 7.7.1
84+
USE_BAZEL_VERSION: 8.7.0
8585

8686
steps:
8787
- uses: actions/checkout@v4
@@ -100,11 +100,11 @@ jobs:
100100
key: ${{ runner.os }}-bazel-${{ env.USE_BAZEL_VERSION }}-${{ hashFiles('WORKSPACE', 'repositories.bzl') }}
101101

102102
- name: Run bazel build
103-
run: bazelisk build //... --enable_bzlmod=${{ matrix.bzlmod }}
103+
run: bazelisk build //... --enable_bzlmod=${{ matrix.bzlmod }} --enable_workspace=${{ !matrix.bzlmod }}
104104

105105
- name: Run bazel test
106-
run: bazelisk test //... --enable_bzlmod=${{ matrix.bzlmod }}
106+
run: bazelisk test //... --enable_bzlmod=${{ matrix.bzlmod }} --enable_workspace=${{ !matrix.bzlmod }}
107107

108108
- name: Run example bazel build
109-
run: bazelisk build //... --enable_bzlmod=${{ matrix.bzlmod }}
109+
run: bazelisk build //... --enable_bzlmod=${{ matrix.bzlmod }} --enable_workspace=${{ !matrix.bzlmod }}
110110
working-directory: ./examples

MODULE.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module(
22
name = "grpc-java",
33
version = "1.82.0-SNAPSHOT", # CURRENT_GRPC_VERSION
4-
compatibility_level = 0,
54
repo_name = "io_grpc_grpc_java",
65
)
76

0 commit comments

Comments
 (0)