Skip to content

Commit 0c149dc

Browse files
committed
Android fix and CI
1 parent ef21abe commit 0c149dc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ jobs:
1616
image: swift:latest
1717
steps:
1818
- uses: actions/checkout@v1
19-
- name: Test
19+
- name: Linux Tests
2020
run: swift test
21+
- name: Android Tests
22+
uses: skiptools/swift-android-action@v2
2123

2224
macos:
2325
name: macOS, iOS, tvOS, Mac Catalyst (Xcode)

Sources/CBOR.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,6 @@ extension CBOR.Tag {
174174
public static let selfDescribeCBOR = CBOR.Tag(rawValue: 55799)
175175
}
176176

177-
#if os(Linux) || os(Windows)
177+
#if os(Linux) || os(Windows) || os(Android)
178178
let NSEC_PER_SEC: UInt64 = 1_000_000_000
179179
#endif

0 commit comments

Comments
 (0)