Skip to content

Commit

Permalink
Run CI against visionOS
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed committed Jan 31, 2024
1 parent 2ae35d8 commit f0ab555
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ jobs:
- name: Upload Coverage Reports
if: success()
uses: codecov/codecov-action@v3
xcodebuild-15-2:
name: Build with xcodebuild on Xcode 15 (visionOS_1)
runs-on: macos-14
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Select Xcode Version
run: sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer
- name: Build and Test Framework
run: Scripts/build.swift visionOS_1
- name: Prepare Coverage Reports
run: ./Scripts/prepare-coverage-reports.sh
- name: Upload Coverage Reports
if: success()
uses: codecov/codecov-action@v3
spm-15-swift:
name: Swift Build Xcode 15
runs-on: macos-13
Expand Down
9 changes: 8 additions & 1 deletion Scripts/build.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ enum Platform: String, CaseIterable, CustomStringConvertible {
case watchOS_8
case watchOS_9
case watchOS_10
case visionOS_1

var destination: String {
switch self {
Expand Down Expand Up @@ -87,6 +88,8 @@ enum Platform: String, CaseIterable, CustomStringConvertible {
return "OS=9.4,name=Apple Watch Series 7 (45mm)"
case .watchOS_10:
return "OS=10.0,name=Apple Watch Series 7 (45mm)"
case .visionOS_1:
return "OS=1.0,name=Apple Vision Pro"
}
}

Expand Down Expand Up @@ -127,6 +130,9 @@ enum Platform: String, CaseIterable, CustomStringConvertible {
.watchOS_9,
.watchOS_10:
return "watchsimulator"

case .visionOS_1:
return "xrsimulator"
}
}

Expand All @@ -148,7 +154,8 @@ enum Platform: String, CaseIterable, CustomStringConvertible {
.macOS_13,
.macOS_14,
.macCatalyst_13,
.macCatalyst_14:
.macCatalyst_14,
.visionOS_1:
return true

case .watchOS_6,
Expand Down

0 comments on commit f0ab555

Please sign in to comment.