Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add visionOS deployment target to podspec #366

Merged
merged 14 commits into from
May 7, 2024
10 changes: 9 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@ on:
jobs:
deploy:
name: Deploy to CocoaPods Trunk
runs-on: macos-latest
runs-on: macos-13
steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # required to be able to find Git tags

- name: Set up pkgx environment
uses: pkgxdev/setup@v1
with:
+: pod xcodes

- name: Select Xcode version
run: sudo xcodes select 15.0

- name: Deploy to CocoaPods Trunk
run: |
set -eo pipefail
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,28 @@ concurrency:
jobs:
lint-podspec:
name: Lint Podspec
runs-on: macos-latest
runs-on: macos-13
steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # required to be able to find Git tags

- name: Set up pkgx environment
uses: pkgxdev/setup@v1
with:
+: pod xcodes

- name: Select Xcode version
run: sudo xcodes select 15.0

- name: Install visionOS Runtime
uses: nick-fields/retry@v2
with:
timeout_minutes: 15
max_attempts: 3
command: sudo xcodes runtimes install 'visionOS 1.0-beta3'

- name: Lint Podspec
run: |
set -eo pipefail
Expand Down
1 change: 1 addition & 0 deletions SwiftUIIntrospect.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ Pod::Spec.new do |spec|
spec.ios.deployment_target = '13.0'
spec.tvos.deployment_target = '13.0'
spec.osx.deployment_target = '10.15'
spec.visionos.deployment_target = '1.0'
end
Loading