Prepare for bzlmod #129
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "build and test" | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
# TODO: rename to build-bazel-6 once we move into bazel 7 as the default, to be deprecated by Dec 2025 | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: bazelbuild/setup-bazelisk@v1 | |
- run: bazel build //... && bazel test //... | |
# TODO: deprecate by Jan 2025 https://bazel.build/release | |
build-bazel-5: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: bazelbuild/setup-bazelisk@v1 | |
- run: export USE_BAZEL_VERSION=5.x && bazel build //... && bazel test //... | |
# TODO: rename to build once we move into bazel 7 as the default | |
build-bazel-7: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: bazelbuild/setup-bazelisk@v1 | |
- run: export USE_BAZEL_VERSION=6.x && bazel build //... && bazel test //... |