@@ -27,18 +27,29 @@ jobs:
2727 fail-fast : false
2828 matrix :
2929 runner : [ ubuntu, windows, macos ]
30- bazelversion : [ '7.1.2' ]
30+ bazelversion : [ '7.1.2', '8.0.0' ]
3131 bzlmod : [ true, false ]
3232 toolchain_resolution : [ "", "--incompatible_enable_proto_toolchain_resolution=true" ]
3333 runs-on : ${{ matrix.runner }}-latest
3434 name : ${{ matrix.continuous-only && inputs.continuous-prefix || '' }} Examples ${{ matrix.runner }} ${{ matrix.bazelversion }}${{ matrix.bzlmod && ' (bzlmod)' || '' }} ${{ matrix.toolchain_resolution && ' (toolchain resolution)' || '' }}
3535 steps :
3636 - name : Checkout pending changes
3737 if : ${{ !matrix.continuous-only || inputs.continuous-run }}
38- uses : protocolbuffers/protobuf-ci/checkout@v3
38+ uses : protocolbuffers/protobuf-ci/checkout@v4
3939 with :
4040 ref : ${{ inputs.safe-checkout }}
4141
42+ # rules_jvm_external doesn't support Java 8, which is the default version
43+ # on some github runners. When this is selected, it results in some
44+ # opaque errors about coursier (see
45+ # https://github.com/bazel-contrib/rules_jvm_external/issues/1337).
46+ - name : Pin to Java 11
47+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
48+ if : ${{ !matrix.continuous-only || inputs.continuous-run }}
49+ with :
50+ distribution : ' temurin'
51+ java-version : ' 11'
52+
4253 - name : Windows startup flags
4354 if : ${{ runner.os == 'Windows' && (!matrix.continuous-only || inputs.continuous-run) }}
4455 working-directory : examples
5364
5465 - name : Run tests
5566 if : ${{ !matrix.continuous-only || inputs.continuous-run }}
56- uses : protocolbuffers/protobuf-ci/bazel@v3
67+ uses : protocolbuffers/protobuf-ci/bazel@v4
5768 with :
5869 credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
5970 bazel-cache : examples
6071 version : ${{ matrix.bazelversion }}
61- bash : cd examples && bazel build //... $BAZEL_FLAGS --enable_bzlmod=${{ matrix.bzlmod }} ${{ matrix.toolchain_resolution }}
72+ bash : >
73+ cd examples;
74+ bazel build //... @com_google_protobuf-examples-with-hyphen//... $BAZEL_FLAGS --enable_bzlmod=${{ matrix.bzlmod }} --enable_workspace=${{ !matrix.bzlmod }} ${{ matrix.toolchain_resolution }};
0 commit comments