Skip to content

Commit

Permalink
Bring back visionOS CI support
Browse files Browse the repository at this point in the history
This sorta reverts commit 4b021b6.

https:/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
now says visionOS is back as an SDK, but there are no simulators.
  • Loading branch information
thomasvl committed Oct 11, 2024
1 parent 65615d7 commit 46c7a65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cocoapods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ jobs:
matrix:
# watchOS fails linting when there are test, wedge in --skip-tests for
# those runs.
# GitHub runners dropped visionOS. https:/actions/runner-images/issues/10559
PLATFORM: ["ios", "macos", "tvos", "watchos --skip-tests"]
# https:/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
# doesn't list any simulators for visionOS, so skip the tests.
PLATFORM: ["ios", "macos", "tvos", "visionos --skip-tests", "watchos --skip-tests"]
CONFIGURATION: ["Debug", "Release"]
steps:
- uses: actions/checkout@v4
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/swiftpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:
strategy:
fail-fast: false
matrix:
# GitHub runners dropped visionOS. https:/actions/runner-images/issues/10559
PLATFORM: ["ios", "macos", "tvos", "watchos"]
PLATFORM: ["ios", "macos", "tvos", "visionos", "watchos"]
CONFIGURATION: ["Debug", "Release"]
steps:
- uses: actions/checkout@v4
- name: Build and Test
run: |
set -eu
ACTIONS="build test"
case "${{matrix.PLATFORM}}" in
ios)
DESTINATION="platform=iOS Simulator,name=iPhone 14,OS=latest"
Expand All @@ -65,7 +65,10 @@ jobs:
DESTINATION="platform=tvOS Simulator,name=Apple TV,OS=latest"
;;
visionos)
# https:/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
# doesn't list any visionOS simulators installed
DESTINATION="platform=visionOS Simulator,name=Apple Vision Pro,OS=latest"
ACTIONS="build"
;;
watchos)
DESTINATION="platform=WatchOS Simulator,name=Apple Watch Series 7 (45mm),OS=latest"
Expand All @@ -76,4 +79,4 @@ jobs:
-scheme GTMSessionFetcher-Package \
-configuration ${{ matrix.CONFIGURATION }} \
-destination "${DESTINATION}" \
build test
${ACTIONS}

0 comments on commit 46c7a65

Please sign in to comment.