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