Skip to content

Commit

Permalink
👷test on macOS instead
Browse files Browse the repository at this point in the history
  • Loading branch information
phimage authored Apr 29, 2021
1 parent 6372c18 commit ab08d91
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
run: brew install libxml2
- name: Swift test
run: |
sdk=`xcrun -sdk iphonesimulator -show-sdk-path`
sdkVersion=`echo $sdk | sed -E 's/.*iPhoneSimulator(.*)\.sdk/\1/'`
swift test -Xswiftc "-sdk" -Xswiftc "$sdk" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios$sdkVersion-simulator"
# on mac os
swift test
# on iOS (deactivate until resolve issue with XCText)
#sdk=`xcrun -sdk iphonesimulator -show-sdk-path`
#sdkVersion=`echo $sdk | sed -E 's/.*iPhoneSimulator(.*)\.sdk/\1/'`
#swift test -Xswiftc "-sdk" -Xswiftc "$sdk" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios$sdkVersion-simulator"

0 comments on commit ab08d91

Please sign in to comment.