File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -176,3 +176,13 @@ jobs:
176
176
- name : Unit Tests
177
177
if : steps.destnameprep.outcome != 'failure'
178
178
run : xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "platform=watchOS Simulator,name=$DESTNAME" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
179
+
180
+ linux :
181
+ name : Linux
182
+ runs-on : ubuntu-latest
183
+ steps :
184
+ - uses : actions/checkout@main
185
+ - name : Build
186
+ run : swift build
187
+ - name : Unit Tests
188
+ run : swift test
Original file line number Diff line number Diff line change @@ -46,7 +46,12 @@ extension StringProtocol {
46
46
/// will be substituted.
47
47
@available ( OSX 10 . 11 , iOS 9 . 0 , * )
48
48
public var asciiStringLossy : ASCIIString {
49
- let transformed = applyingTransform (
49
+ #if canImport(Darwin)
50
+ let this = self
51
+ #else
52
+ let this = String ( self ) as NSString
53
+ #endif
54
+ let transformed = this. applyingTransform (
50
55
StringTransform ( " Latin-ASCII " ) ,
51
56
reverse: false
52
57
)
You can’t perform that action at this time.
0 commit comments