diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index f4295bf..892cf59 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -19,12 +19,25 @@ jobs: sudo apt-get update sudo apt-get install -y gcc g++ cmake lcov gcovr sudo apt-get install -y libgtest-dev - sudo apt install -y libbenchmark-dev=1.8.3 cd /usr/src/gtest sudo cmake CMakeLists.txt sudo make sudo cp ./lib/libgtest*.a /usr/lib + - name: Clone libbenchmark + run: git clone https://github.com/google/benchmark.git + + - name: Build libbenchmark + run: | + cd benchmark + cmake -E make_directory "build" + cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../ + cmake --build "build" --config Release + + - name: Install libbenchmark + run: sudo cmake --build "build" --target install --config Release + working-directory: ./benchmark + - name: Configure CMake run: cmake -S . -B build -DBUILD_PERF=ON