Skip to content

Commit 4d1d20f

Browse files
committed
fix tests
1 parent f16234d commit 4d1d20f

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/workflows/macos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
- uses: little-core-labs/[email protected]
3434
id: tagName
3535

36-
- name: Installation
36+
- name: Install dlang toolchain
3737
run: |
38-
brew install dmd
39-
brew install dub
38+
brew install dmd --HEAD dub
39+
dmd --version
4040
4141
- name: Tests
4242
run: |

tests/projects/other/multiplats_xcode/test.lua

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@ function main(t)
33
os.exec("xmake f -c -vD")
44
os.exec("xmake -rvD")
55
os.exec("xmake f -c -vD -p iphoneos")
6-
os.exec("xmake -rvD")
6+
-- build only arm64 target first, avoid building armv7 if SDK doesn't support it
7+
os.exec("xmake -rvD test_iphoneos")
8+
-- try to build armv7 target, skip if SDK doesn't support it
9+
try
10+
{
11+
function ()
12+
os.exec("xmake f -c -vD -p iphoneos -a armv7")
13+
os.exec("xmake -rvD test_iphoneos_armv7")
14+
end,
15+
catch
16+
{
17+
function (errors)
18+
-- SDK doesn't support armv7, skip this target
19+
cprint("${color.warning}skip test_iphoneos_armv7: SDK doesn't support armv7")
20+
end
21+
}
22+
}
723
end
824
end

0 commit comments

Comments
 (0)