Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreVale69 committed Jun 1, 2024
1 parent 1e3ab03 commit be2e3e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Import GoogleTest
run: git submodule update --init --recursive
# doc: https://google.github.io/googletest/quickstart-cmake.html#create-and-run-a-binary
- name: Build and run the tests
run: |
Expand Down
10 changes: 2 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@ project(MatrixMultiplication)
include_directories(include)


include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/305e5a238b3c8d11266fbafd85520fb6b3184851.zip
)
FetchContent_MakeAvailable(googletest)
#add_subdirectory(googletest)
add_subdirectory(googletest)
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})

add_executable(test_multiplication test/test_matrix_multiplication.cpp)
Expand All @@ -22,4 +16,4 @@ enable_testing()


include(GoogleTest)
gtest_discover_tests(test_multiplication)
gtest_discover_tests(test_multiplication)

0 comments on commit be2e3e3

Please sign in to comment.