Skip to content

Commit

Permalink
add pg ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacyking committed Oct 16, 2023
1 parent 752b258 commit 47f216d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
image: postgres
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: test_ormppdb
options: >-
--health-cmd pg_isready
Expand Down
3 changes: 3 additions & 0 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ if(ENABLE_PG)
target_link_libraries(${PROJECT_NAME} ${PGSQL_LIBRARY})
elseif(ENABLE_MYSQL)
target_link_libraries(${PROJECT_NAME} ${MYSQL_LIBRARY})
if (MSVC and CMAKE_BUILD_TYPE STREQUAL "Debug")
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/MD")
endif()
elseif(ENABLE_MARIADB)
target_link_libraries(${PROJECT_NAME} ${MARIADB_LIBRARY})
elseif(ENABLE_SQLITE3)
Expand Down
3 changes: 3 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ if(ENABLE_PG)
target_link_libraries(${PROJECT_NAME} ${PGSQL_LIBRARY} doctest)
elseif(ENABLE_MYSQL)
target_link_libraries(${PROJECT_NAME} ${MYSQL_LIBRARY} doctest)
if (MSVC and CMAKE_BUILD_TYPE STREQUAL "Debug")
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/MD")
endif()
elseif(ENABLE_MARIADB)
target_link_libraries(${PROJECT_NAME} ${MARIADB_LIBRARY} doctest)
elseif(ENABLE_SQLITE3)
Expand Down

0 comments on commit 47f216d

Please sign in to comment.