This commit is contained in:
@@ -11,7 +11,8 @@ jobs:
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list.d/ubuntu.sources
|
||||
apt update && apt install libmruby-dev
|
||||
apt update
|
||||
apt install -y libmruby-dev
|
||||
mkdir build && cd build
|
||||
cmake ..
|
||||
cmake --build . --target mrubypp_test
|
||||
|
||||
@@ -40,8 +40,13 @@ if (${MRUBYPP_BUILD_TEST})
|
||||
|
||||
target_include_directories(mrubypp_test PUBLIC "${mruby_ROOT}/include")
|
||||
target_link_directories(mrubypp_test PUBLIC "${mruby_ROOT}/lib")
|
||||
target_link_libraries(mrubypp_test PUBLIC
|
||||
libmruby ws2_32.lib wsock32.lib ws2_32.lib)
|
||||
if (WIN32)
|
||||
target_link_libraries(mrubypp_test PUBLIC
|
||||
libmruby ws2_32.lib wsock32.lib ws2_32.lib)
|
||||
else ()
|
||||
target_link_libraries(mrubypp_test PUBLIC libmruby)
|
||||
endif ()
|
||||
|
||||
|
||||
target_link_libraries(mrubypp_test PRIVATE mrubypp Catch2::Catch2WithMain)
|
||||
add_test(NAME mrubypp_test COMMAND mrubypp_test)
|
||||
|
||||
Reference in New Issue
Block a user