mirror of https://github.com/grpc/grpc-java.git
.github/workflows: Split Bazel into two jobs
The two Bazel versions are completely separate; no need to run them serially.
This commit is contained in:
parent
f66d7fc54d
commit
c080b52f95
|
@ -77,8 +77,16 @@ jobs:
|
||||||
|
|
||||||
bazel:
|
bazel:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
# Test with and without bzlmod. Bazel 6 doesn't support bzlmod, so use Bazel 7 instead
|
||||||
|
- bazel: 6.0.0
|
||||||
|
bzlmod: false
|
||||||
|
- bazel: 7.0.0
|
||||||
|
bzlmod: true
|
||||||
env:
|
env:
|
||||||
USE_BAZEL_VERSION: 6.0.0
|
USE_BAZEL_VERSION: ${{ matrix.bazel }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -97,19 +105,8 @@ jobs:
|
||||||
key: ${{ runner.os }}-bazel-${{ env.USE_BAZEL_VERSION }}-${{ hashFiles('WORKSPACE', 'repositories.bzl') }}
|
key: ${{ runner.os }}-bazel-${{ env.USE_BAZEL_VERSION }}-${{ hashFiles('WORKSPACE', 'repositories.bzl') }}
|
||||||
|
|
||||||
- name: Run bazel build
|
- name: Run bazel build
|
||||||
run: bazelisk build //... --enable_bzlmod=false
|
run: bazelisk build //... --enable_bzlmod=${{ matrix.bzlmod }}
|
||||||
|
|
||||||
- name: Run example bazel build
|
- name: Run example bazel build
|
||||||
run: bazelisk build //... --enable_bzlmod=false
|
run: bazelisk build //... --enable_bzlmod=${{ matrix.bzlmod }}
|
||||||
working-directory: ./examples
|
|
||||||
|
|
||||||
- name: Run bazel build (bzlmod)
|
|
||||||
env:
|
|
||||||
USE_BAZEL_VERSION: 7.0.0
|
|
||||||
run: bazelisk build //... --enable_bzlmod=true
|
|
||||||
|
|
||||||
- name: Run example bazel build (bzlmod)
|
|
||||||
env:
|
|
||||||
USE_BAZEL_VERSION: 7.0.0
|
|
||||||
run: bazelisk build //... --enable_bzlmod=true
|
|
||||||
working-directory: ./examples
|
working-directory: ./examples
|
||||||
|
|
Loading…
Reference in New Issue