diff options
| author | ruki <[email protected]> | 2021-01-08 11:35:04 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-08 11:35:04 +0800 |
| commit | b5a414be7af97fd058abb5dc5c37a7564da1c1ce (patch) | |
| tree | 6bfcb618892a7ad818eea1b9f642367599078e58 /tests/projects/package/basic | |
| parent | 8a9dad0bbb9932cf5f5aa5cab10043a784028d53 (diff) | |
| parent | 0ff70c2c239a0857798583650dcd349c24292aa3 (diff) | |
Merge pull request #1175 from xmake-io/deps
Improve package deps
Diffstat (limited to 'tests/projects/package/basic')
| -rw-r--r-- | tests/projects/package/basic/test.lua | 9 | ||||
| -rw-r--r-- | tests/projects/package/basic/xmake.lua | 4 |
2 files changed, 6 insertions, 7 deletions
diff --git a/tests/projects/package/basic/test.lua b/tests/projects/package/basic/test.lua index a4b905689..8644a2af9 100644 --- a/tests/projects/package/basic/test.lua +++ b/tests/projects/package/basic/test.lua @@ -1,7 +1,6 @@ --- main entry function main(t) - - -- TODO - -- build project --- t:build() + -- only for x86/x64, because it will take too long time on ci with arm/mips + if os.subarch():startswith("x") or os.subarch() == "i386" then + t:build() + end end diff --git a/tests/projects/package/basic/xmake.lua b/tests/projects/package/basic/xmake.lua index b71a22c1d..f06d2a199 100644 --- a/tests/projects/package/basic/xmake.lua +++ b/tests/projects/package/basic/xmake.lua @@ -1,11 +1,11 @@ add_requires("tbox master", {debug = true}) add_requires("zlib >=1.2.11") -add_requires("pcre2", "luajit", {system = false, optional = true}) +add_requires("pcre2", {system = false, optional = true}) add_rules("mode.debug", "mode.release") target("console") set_kind("binary") add_files("src/*.c") - add_packages("tbox", "zlib", "pcre2", "luajit") + add_packages("tbox", "zlib", "pcre2") |
