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 1b04d62
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 19 deletions.
39 changes: 26 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,17 @@ jobs:
- name: Install CocoaPods
run: sudo gem install cocoapods

- name: Create visionOS Simulator
if: matrix.platform == 'visionOS'
shell: bash
run: |
xcrun simctl list devicetypes
xcrun simctl list runtimes
echo '---'
VISION_OS_DEVICE_TYPE='com.apple.CoreSimulator.SimDeviceType.Apple-Vision-Pro'
VISION_OS_RUNTIME=$(xcrun simctl list runtimes | grep 'visionOS' | awk '{ print $7 }' | head -n 1)
xcrun simctl create AVP_SIM "$VISION_OS_DEVICE_TYPE" "$VISION_OS_RUNTIME"
- 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 1b04d62

Please sign in to comment.