Skip to content

Commit

Permalink
Add visionOS to CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
bamx23 committed May 6, 2024
1 parent 5d45a2f commit 28f11a4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 19 deletions.
43 changes: 30 additions & 13 deletions .github/workflows/cocoapods-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,21 @@ jobs:
fail-fast: false
matrix:
include:
- platform: iOS
config: ""
- platform: iOS
config: "--use-libraries"
- platform: iOS
config: "--use-libraries --use-modular-headers"
- platform: iOS
config: "--use-static-frameworks"
- platform: macOS
config: ""
- platform: tvOS
config: ""
- platform: watchOS
# - platform: iOS
# config: ""
# - platform: iOS
# config: "--use-libraries"
# - platform: iOS
# config: "--use-libraries --use-modular-headers"
# - platform: iOS
# config: "--use-static-frameworks"
# - platform: macOS
# config: ""
# - platform: tvOS
# config: ""
# - platform: watchOS
# config: ""
- platform: visionOS
config: ""
steps:
- name: Checkout Code
Expand All @@ -41,6 +43,21 @@ jobs:
- name: Install CocoaPods
run: sudo gem install cocoapods

- name: Create visionOS Simulator
if: matrix.platform == 'visionOS'
shell: bash
run: |
# xcrun simctl list devicetypes
# echo '---'
# xcrun simctl list runtimes
# echo '---'
# xcrun simctl list devices
# echo '---'
# xcrun simctl create AVP_SIM 'com.apple.CoreSimulator.SimDeviceType.Apple-Vision-Pro' 'com.apple.CoreSimulator.SimRuntime.xrOS-1-1'
defaults write com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES
defaults write com.apple.CoreSimulator AllowUnsupportedVisionOSHost -bool YES
xcodebuild -downloadPlatform visionOS
- name: Lint Podspec
id: lint
run: |
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ jobs:
fail-fast: false
matrix:
platform:
- iOS
- macOS
- watchOS
- tvOS
- mac-catalyst
# - iOS
# - macOS
# - watchOS
# - tvOS
# - mac-catalyst
- visionOS
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -30,7 +31,7 @@ jobs:
xcode-version: latest-stable

- name: Run Unit Tests
uses: bamx23/xcodebuild@node20
uses: bamx23/xcodebuild@vision-os
with:
workspace: ".swiftpm/xcode/package.xcworkspace"
scheme: "KSCrash-Package"
Expand Down

0 comments on commit 28f11a4

Please sign in to comment.