1
0
mirror of https://github.com/google/benchmark.git synced 2025-04-29 14:30:37 +08:00

Add a CI test for the new bzlmod integration ()

* Test bzlmod build workflow for Bazel


---------

Co-authored-by: Andy Christiansen <achristiansen@google.com>
This commit is contained in:
Andy Christiansen 2023-07-03 10:59:56 +02:00 committed by GitHub
parent aacf2b1af9
commit fed73374d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,14 +5,14 @@ on:
pull_request: {}
jobs:
job:
name: bazel.${{ matrix.os }}
build_and_test_default:
name: bazel.${{ matrix.os }}.${{ matrix.bzlmod && 'bzlmod' || 'no_bzlmod' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-2022]
bzlmod: [false, true]
steps:
- uses: actions/checkout@v3
@ -28,8 +28,8 @@ jobs:
- name: build
run: |
bazel build //:benchmark //:benchmark_main //test/...
bazel build ${{ matrix.bzlmod && '--enable_bzlmod' || '--noenable_bzlmod' }} //:benchmark //:benchmark_main //test/...
- name: test
run: |
bazel test --test_output=all //test/...
bazel test ${{ matrix.bzlmod && '--enable_bzlmod' || '--noenable_bzlmod' }} --test_output=all //test/...