Add codspeed instrumentation support for google benchmark #1
Workflow file for this run
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest # You can change this to other runners like 'windows-latest' or 'macos-latest' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up C++ | |
uses: actions/setup-cpp@v2 | |
with: | |
compiler: gcc | |
version: '14' | |
- name: Build google_benchmark instrumentation | |
run: | | |
cd examples/google_benchmark | |
mkdir build -D | |
cd build | |
cmake -DCODSPEED_MODE=instrumentation .. | |
make | |
- name: Build google_benchmark walltime | |
run: | |
cd examples/google_benchmark | |
mkdir build -D | |
cd build | |
cmake -DCODSPEED_MODE=walltime .. | |
make |