From 486b55772d4e897e099a8352a1a10eda5f47da90 Mon Sep 17 00:00:00 2001 From: Muhammad Nawaz Date: Mon, 13 Nov 2023 22:13:36 +0500 Subject: [PATCH] clone --- .github/workflows/benchmark.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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