Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rekola committed Feb 6, 2024
1 parent c632283 commit 12c9776
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Compile
- name: Configure
run: |
sudo apt install catch2
# Build
- name: Build
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/vs17-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- name: Configure
working-directory: ${{github.workspace}}
run: |
vcpkg install catch2
mkdir build
cd build && cmake -G "${{matrix.gen}}" -A ${{matrix.arch}} ..
- name: Build
Expand Down
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ else()
# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg")
endif()

find_package(Catch2 2 REQUIRED)
# These tests can use the Catch2-provided main
include(FetchContent)
FetchContent_Declare(Catch2
QUIET
URL https://github.com/catchorg/Catch2/archive/v2.13.4.tar.gz
)
FetchContent_MakeAvailable(Catch2)

add_executable(tests tests/test.cpp)
target_link_libraries(tests PRIVATE Catch2::Catch2WithMain)
target_include_directories(tests PRIVATE include)
Expand Down

0 comments on commit 12c9776

Please sign in to comment.