diff options
| author | ruki <[email protected]> | 2025-11-19 23:43:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-09 22:11:50 +0800 |
| commit | 4d7ff03f1f95b4edb3e1406fab6290ff1068170f (patch) | |
| tree | e507fa45cf7ae0906b90732ee67e4380c24d8f65 | |
| parent | cd05cd1a20d5b77955b4c8410caf88030e398e91 (diff) | |
fix tests
| -rw-r--r-- | .github/workflows/macos.yml | 6 | ||||
| -rw-r--r-- | tests/projects/other/multiplats_xcode/test.lua | 18 |
2 files changed, 20 insertions, 4 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 581e5abf2..0408b90f3 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -33,10 +33,10 @@ jobs: - uses: little-core-labs/[email protected] id: tagName - - name: Installation + - name: Install dlang toolchain run: | - brew install dmd - brew install dub + brew install dmd --HEAD dub + dmd --version - name: Tests run: | diff --git a/tests/projects/other/multiplats_xcode/test.lua b/tests/projects/other/multiplats_xcode/test.lua index 196797077..5d27584e3 100644 --- a/tests/projects/other/multiplats_xcode/test.lua +++ b/tests/projects/other/multiplats_xcode/test.lua @@ -3,6 +3,22 @@ function main(t) os.exec("xmake f -c -vD") os.exec("xmake -rvD") os.exec("xmake f -c -vD -p iphoneos") - os.exec("xmake -rvD") + -- build only arm64 target first, avoid building armv7 if SDK doesn't support it + os.exec("xmake -rvD test_iphoneos") + -- try to build armv7 target, skip if SDK doesn't support it + try + { + function () + os.exec("xmake f -c -vD -p iphoneos -a armv7") + os.exec("xmake -rvD test_iphoneos_armv7") + end, + catch + { + function (errors) + -- SDK doesn't support armv7, skip this target + cprint("${color.warning}skip test_iphoneos_armv7: SDK doesn't support armv7") + end + } + } end end |
