Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,17 @@ jobs:
run: swift build
- name: Unit Tests
run: swift test

android:
name: Build (Android)
runs-on: ubuntu-latest
timeout-minutes: 30
env:
TARGET_TRIPLE: aarch64-unknown-linux-android28
steps:
- uses: actions/checkout@main
- uses: orchetect/setup-swift-android-sdk@v1
with:
target-triple: ${{ env.TARGET_TRIPLE }}
- name: Build
run: swift build --swift-sdk "$TARGET_TRIPLE" --static-swift-stdlib
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import Darwin
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(Android)
import Android
#endif

extension Timecode: Strideable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import Darwin
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(Android)
import Android
#endif

// MARK: - ceiling / floor
Expand All @@ -30,6 +32,8 @@ extension FloatingPoint {
Glibc.ceil(self)
#elseif canImport(Musl)
Musl.ceil(self)
#elseif canImport(Android)
Android.ceil(self)
#endif
}

Expand All @@ -43,6 +47,8 @@ extension FloatingPoint {
Glibc.floor(self)
#elseif canImport(Musl)
Musl.floor(self)
#elseif canImport(Android)
Android.floor(self)
#endif
}
}
Expand Down
Loading