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 f37aa3c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/cocoapods-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
config: ""
- platform: watchOS
config: ""
- platform: visionOS
config: ""
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -41,6 +43,20 @@ jobs:
- name: Install CocoaPods
run: sudo gem install cocoapods

- name: Use Latest Stable Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Install visionOS Platform
if: matrix.platform == 'visionOS'
shell: bash
run: |
# See https://github.com/actions/runner-images/issues/8144#issuecomment-1902072070
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
3 changes: 2 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- 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 f37aa3c

Please sign in to comment.