Skip to content

Commit

Permalink
[test] test wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Quuxplusone committed Oct 19, 2023
1 parent b27c6ec commit 7fa0a51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build-and-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,14 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install Google Test (Linux)
if: matrix.os == 'ubuntu-latest'
run: >
sudo apt-get install libgtest-dev
- name: Build (Linux)
if: matrix.os == 'ubuntu-latest'
working-directory: ${{ github.workspace }}
run: |
cmake . -B ./build -G 'Unix Makefiles' \
-DCMAKE_CXX_STANDARD=${{ matrix.cpp_standard }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_DOWNLOAD_GTEST=ON
- name: Build (Windows)
if: matrix.os == 'windows-latest'
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

if ("${CMAKE_DOWNLOAD_GTEST}")
include(fetchcontent)
include(FetchContent)
fetchcontent_declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
Expand Down

0 comments on commit 7fa0a51

Please sign in to comment.