Skip to content

Commit

Permalink
build gtest/gbench
Browse files Browse the repository at this point in the history
  • Loading branch information
nmm0 committed Jun 5, 2024
1 parent d89b88a commit c7deca9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ jobs:
steps:
- name: Install gtest manually
run: |
apt-get install libgtest-dev && cd /usr/src/gtest && cmake CMakeLists.txt && make && cp lib/*.a /usr/lib && ln -s /usr/lib/libgtest.a /usr/local/lib/libgtest.a && ln -s /usr/lib/libgtest_main.a /usr/local/lib/libgtest_main.a
apt install libbenchmark1 libbenchmark-dev
mkdir -p /opt/gtest_src && cd /opt/gtest_src && wget -O- https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz | tar -xf
mkdir /opt/gtest_build && cd /opt/gtest_build && cmake /opt/gtest_src/v1.14.0 && cmake --build --target install
mkdir -p /opt/gbench_src && cd /opt/gbench_src && wget -O- https://github.com/google/benchmark/archive/refs/tags/v1.8.4.tar.gz | tar -xf
mkdir /opt/gbench_build && cd /opt/gbench_build && cmake /opt/gbench_src/v1.8.4 && cmake --build --target install
- name: Create Build Environment
run: cmake -E make_directory ${{github.workspace}}/mdspan-build
Expand Down

0 comments on commit c7deca9

Please sign in to comment.