Files
boringssl/third_party/benchmark/.github/workflows/build-and-test-perfcounters.yml
T
David Benjamin 2a5cd33a2a Update third_party/benchmark to 1.9.5
Picks up
https://github.com/google/benchmark/commit/d8db2f90b643eb28a12976beb4d57bcfb639911d

This results in deprecation warnings with benchmark::internal::Benchmark
so go ahead and fix those.

Also add third_party/benchmark to .bazelignore. This stops
`bazel test ...` from recursing in here. It looks like we previously
suppressed copying some files, but we can avoid having to post-process
the files this way.

Change-Id: Idf20fce28153a450fe03e121d9bc0d601d43ec6c
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/88948
Auto-Submit: David Benjamin <davidben@google.com>
Reviewed-by: Lily Chen <chlily@google.com>
Commit-Queue: Lily Chen <chlily@google.com>
2026-02-09 14:50:34 -08:00

58 lines
1.5 KiB
YAML

name: build-and-test-perfcounters
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CMAKE_GENERATOR: Ninja
permissions:
contents: read
jobs:
job:
# TODO(dominic): Extend this to include compiler and set through env: CC/CXX.
name: ${{ matrix.os }}.${{ matrix.build_type }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
build_type: ['Release', 'Debug']
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: install libpfm
run: |
sudo apt update
sudo apt -y install libpfm4-dev
- name: create build environment
run: cmake -E make_directory ${{ runner.workspace }}/_build
- name: configure cmake
shell: bash
working-directory: ${{ runner.workspace }}/_build
run: >
cmake $GITHUB_WORKSPACE
-DBENCHMARK_ENABLE_LIBPFM=1
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: build
shell: bash
working-directory: ${{ runner.workspace }}/_build
run: cmake --build . --config ${{ matrix.build_type }}
# Skip testing, for now. It seems perf_event_open does not succeed on the
# hosting machine, very likely a permissions issue.
# TODO(mtrofin): Enable test.
# - name: test
# shell: bash
# working-directory: ${{ runner.workspace }}/_build
# run: ctest -C ${{ matrix.build_type }} --rerun-failed --output-on-failure