Skip to content

Commit bba050d

Browse files
committed
Android support and CI
1 parent 4ecb8b4 commit bba050d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ jobs:
2626
uses: apple/swift-nio/.github/workflows/macos_tests.yml@main
2727
with:
2828
build_scheme: swift-openapi-urlsession
29+
30+
android-tests:
31+
name: Android tests
32+
uses: skiptools/swift-android-action@v2
33+

Sources/OpenAPIURLSession/BufferedStream/Lock.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
#if canImport(Darwin)
3030
import Darwin
31+
#elseif canImport(Android)
32+
import Android
3133
#elseif canImport(Glibc)
3234
import Glibc
3335
#endif

0 commit comments

Comments
 (0)