Skip to content

Add codspeed instrumentation support for google benchmark #8

Add codspeed instrumentation support for google benchmark

Add codspeed instrumentation support for google benchmark #8

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
build-instrumentation:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential cmake
- name: Cache instrumentation build
uses: actions/cache@v3
with:
path: examples/google_benchmark/build-instrumentation
key: ${{ runner.os }}-build-instrumentation-${{ hashFiles('**/CMakeLists.txt', '**/examples/google_benchmark/**') }}
restore-keys: |
${{ runner.os }}-build-instrumentation-
- name: Create build directory
run: mkdir -p examples/google_benchmark/build-instrumentation
- name: Build google_benchmark instrumentation
run: |
cd examples/google_benchmark/build-instrumentation
cmake -DCODSPEED_MODE=instrumentation ..
make -j
build-walltime:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential cmake
- name: Cache walltime build
uses: actions/cache@v3
with:
path: examples/google_benchmark/build-walltime
key: ${{ runner.os }}-build-walltime-${{ hashFiles('**/CMakeLists.txt', '**/examples/google_benchmark/**') }}
restore-keys: |
${{ runner.os }}-build-walltime-
- name: Create build directory
run: mkdir -p examples/google_benchmark/build-walltime
- name: Build google_benchmark walltime
run: |
cd examples/google_benchmark/build-walltime
cmake -DCODSPEED_MODE=walltime ..
make -j