Skip to content

Commit 80541af

Browse files
committed
Making it actually build & test for watchOS
1 parent 450a7f5 commit 80541af

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.github/workflows/iOS.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [pull_request]
55
jobs:
66
build:
77

8-
timeout-minutes: 3
8+
timeout-minutes: 4
99
runs-on: macOS-latest
1010

1111
steps:
@@ -26,5 +26,5 @@ jobs:
2626
run: xcodebuild build test -list
2727

2828
- name: Run iOS tests
29-
run: xcodebuild build test -destination 'name=iPhone 11' -scheme 'RectangleTools'
29+
run: xcodebuild build test -destination 'name=iPhone 16' -scheme 'RectangleTools'
3030

.github/workflows/watchOS.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [pull_request]
55
jobs:
66
build:
77

8-
timeout-minutes: 3
8+
timeout-minutes: 4
99
runs-on: macOS-latest
1010

1111
steps:

Sources/RectangleTools/Default Conformances/CIVector + DualTwoDimensional.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Created by The Northstar✨ System on 2023-11-16.
66
//
77

8+
#if canImport(CoreImage)
89
import CoreImage
910

1011

@@ -38,3 +39,4 @@ public extension DualTwoDimensional where Self: CIVector {
3839
w: secondDimensionPair.y)
3940
}
4041
}
42+
#endif

Tests/RectangleToolsTests/Point Tests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ final class Point_Tests: XCTestCase {
6565

6666
func testMagnitude() {
6767
// https://www.wolframalpha.com/input?i=distance+from+%28-2%2C-1%29+to+%285%2C6%29
68+
#if canImport(CoreImage)
6869
XCTAssertEqual(CIVector(x: -2, y: -1, z: 5, w: 6).magnitude, 7 * sqrt(2))
70+
#endif
6971
}
7072
}

0 commit comments

Comments
 (0)