Skip to content

Commit

Permalink
Fix missing visionOS platform on CI (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
bamx23 authored Oct 7, 2024
1 parent 63a52f1 commit 00ca0b0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ concurrency:

jobs:
sample:
runs-on: macos-latest
runs-on: "macos-${{ matrix.macos-version || 'latest' }}"
timeout-minutes: 15
strategy:
fail-fast: false
Expand All @@ -32,6 +32,7 @@ jobs:
- platform: tvOS
- platform: watchOS
- platform: visionOS
macos-version: "15"
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/cocoapods-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:

jobs:
lint:
runs-on: macos-latest
runs-on: "macos-${{ matrix.macos-version || 'latest' }}"
timeout-minutes: 15
strategy:
fail-fast: false
Expand All @@ -42,6 +42,7 @@ jobs:
config: ""
- platform: visionOS
config: ""
macos-version: "15"
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ jobs:
with:
xcode-version: latest-stable

- name: Install visionOS Platform
shell: bash
run: |
# See https://github.com/actions/runner-images/issues/10692#issuecomment-2377521050
xcodebuild -runFirstLaunch
xcrun simctl list
xcodebuild -downloadPlatform visionOS
xcodebuild -runFirstLaunch
- name: Update version in podspec
run: sed -i '' 's/s.version = "[^"]*"/s.version = "${{ github.event.inputs.version }}"/' KSCrash.podspec

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
xcode-version: "14.3.1"

- platform: visionOS
macos-version: "15"

- platform: macOS
- platform: macOS
Expand Down

0 comments on commit 00ca0b0

Please sign in to comment.