ci
Some checks failed
ubuntu / Explore-Gitea-Actions (push) Failing after 40s

This commit is contained in:
2025-10-21 22:27:55 +08:00
parent 6e1983c60e
commit af95e661fd
2 changed files with 9 additions and 3 deletions

View File

@@ -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

View File

@@ -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)