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

Update bazel version to 7.0.1 #46

Merged
merged 2 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ common --enable_bzlmod
common --registry=https://raw.githubusercontent.com/world-federation-of-advertisers/bazel-registry/main
common --registry=https://bcr.bazel.build

# Configuration for continuous integration (CI).
common:ci --lockfile_mode=error
build:ci --compilation_mode=opt

# Use clang as C++ compiler.
build --repo_env='CC=clang'

Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0
7.0.1
29 changes: 23 additions & 6 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,27 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Check out revision
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Bazel build and test
uses: world-federation-of-advertisers/actions/bazel-build-test@v1
with:
cache-version: 1
workspace-path: .
- name: Write ~/.bazelrc
run: |
echo 'common --config=ci' >> ~/.bazelrc

- name: Set up Bazel
run: |
mkdir -p ~/.local/bin
bazelisk_path="$(which bazelisk)"
ln -s "${bazelisk_path}" ~/.local/bin/bazel

- name: Build
run: |
bazel build //...

- name: Test
id: run-tests
run: |
bazel test //... || (( $? == 4 ))

- name: Upload Bazel testlogs
if: failure() && steps.run-tests.outcome == 'failure'
uses: world-federation-of-advertisers/actions/bazel-upload-testlogs@v2
Loading
Loading