Skip to content

Commit

Permalink
Update bazel version to 7.0.1 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
renjiezh authored Feb 28, 2024
1 parent 65c3687 commit cc9ec2f
Show file tree
Hide file tree
Showing 4 changed files with 2,333 additions and 7 deletions.
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

0 comments on commit cc9ec2f

Please sign in to comment.