From 5d65d9479fdf95ba2268a0d8cefcad7e14080e14 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 20 Jun 2023 13:56:12 +0800 Subject: [PATCH] do test on ci (#2195) --- packages/t/trantor/xmake.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/t/trantor/xmake.lua b/packages/t/trantor/xmake.lua index b2ee1f1cf..a5413ca2f 100644 --- a/packages/t/trantor/xmake.lua +++ b/packages/t/trantor/xmake.lua @@ -15,16 +15,17 @@ package("trantor") add_versions("v1.5.7", "42576563afbf1e58c7d68f758cf3fca4d193496d4e3f82c80069d8389a7839d5") add_versions("v1.5.8", "705ec0176681be5c99fcc7af37416ece9d65ff4d907bca764cb11471b104fbf8") - add_patches("v1.5.8", path.join(os.scriptdir(), "patches", "1.5.8", "skip_doc.patch" ),"4124f3cc1e486ad75bc5ec2fa454ea5319d68287d0b1d8cfa3b5ab865f8ca5fd") + add_patches("v1.5.8", path.join(os.scriptdir(), "patches", "1.5.8", "skip_doc.patch" ), "4124f3cc1e486ad75bc5ec2fa454ea5319d68287d0b1d8cfa3b5ab865f8ca5fd") add_deps("cmake") add_deps("openssl", "c-ares", {optional = true}) - if is_plat("windows") or is_plat("mingw") then + if is_plat("windows", "mingw") then add_patches("v1.5.8", path.join(os.scriptdir(), "patches", "1.5.8", "fix-win-off_t.patch" ),"f0d7fbfc98085ed8b5f6c7504be29b18ddcd6fe4e14e3551396a643fc4574dc0") add_syslinks("ws2_32") elseif is_plat("linux") then add_syslinks("pthread") end + on_install("windows", "macosx", "linux", "mingw@windows", function (package) local configs = {} table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))