update version of gtest to v1.15.2 (latest) and also the cmake config #2469
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: bazel | |
on: | |
push: {} | |
pull_request: {} | |
jobs: | |
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-latest] | |
bzlmod: [false, true] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: mount bazel cache | |
uses: actions/cache@v4 | |
env: | |
cache-name: bazel-cache | |
with: | |
path: "~/.cache/bazel" | |
key: ${{ env.cache-name }}-${{ matrix.os }}-${{ github.ref }} | |
restore-keys: | | |
${{ env.cache-name }}-${{ matrix.os }}-main | |
- name: build | |
run: | | |
bazel build ${{ matrix.bzlmod && '--enable_bzlmod' || '--noenable_bzlmod' }} //:benchmark //:benchmark_main //test/... | |
- name: test | |
run: | | |
bazel test ${{ matrix.bzlmod && '--enable_bzlmod' || '--noenable_bzlmod' }} --test_output=all //test/... |