Skip to content

Commit

Permalink
Update CI to use Xcode 16 (#306)
Browse files Browse the repository at this point in the history
We can upgrade to the Swift 6 toolchain separately; need some fixes in
SwiftProtobuf first (like
apple/swift-protobuf#1729).

---------

Signed-off-by: Michael Rebello <[email protected]>
  • Loading branch information
rebello95 authored Oct 9, 2024
1 parent 7bbb10b commit 30d3ccf
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Select Xcode version
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#xcode
run: sudo xcode-select --switch /Applications/Xcode_16.app
- name: Install xcbeautify
run: brew install xcbeautify
- name: Build Eliza CocoaPods example
Expand All @@ -27,8 +27,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Select Xcode version
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#xcode
run: sudo xcode-select --switch /Applications/Xcode_16.app
- name: Install xcbeautify
run: brew install xcbeautify
- name: Build Eliza Swift PM example
Expand All @@ -40,19 +40,19 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Select Xcode version
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#xcode
run: sudo xcode-select --switch /Applications/Xcode_16.app
- name: Install xcbeautify
run: brew install xcbeautify
- name: Build Connect iOS library
run: set -o pipefail && xcodebuild -scheme Connect-Package -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.3' | xcbeautify
run: set -o pipefail && xcodebuild -scheme Connect-Package -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.0' | xcbeautify
build-library-macos:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Select Xcode version
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#xcode
run: sudo xcode-select --switch /Applications/Xcode_16.app
- name: Install xcbeautify
run: brew install xcbeautify
- name: Build Connect macOS library
Expand All @@ -62,23 +62,23 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Select Xcode version
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#xcode
run: sudo xcode-select --switch /Applications/Xcode_16.app
- name: Install xcbeautify
run: brew install xcbeautify
- name: Build Connect tvOS library
run: set -o pipefail && xcodebuild -scheme Connect-Package -destination 'platform=tvOS Simulator,name=Apple TV,OS=17.3' | xcbeautify
run: set -o pipefail && xcodebuild -scheme Connect-Package -destination 'platform=tvOS Simulator,name=Apple TV,OS=18.0' | xcbeautify
build-library-watchos:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Select Xcode version
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#xcode
run: sudo xcode-select --switch /Applications/Xcode_16.app
- name: Install xcbeautify
run: brew install xcbeautify
- name: Build Connect watchOS library
run: set -o pipefail && xcodebuild -scheme Connect-Package -destination 'platform=watchOS Simulator,name=Apple Watch Series 9 (45mm),OS=10.3' | xcbeautify
run: set -o pipefail && xcodebuild -scheme Connect-Package -destination 'platform=watchOS Simulator,name=Apple Watch Series 10 (42mm),OS=11.0' | xcbeautify
build-plugin-and-generate:
runs-on: macos-14
steps:
Expand All @@ -102,8 +102,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Select Xcode version
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#xcode
run: sudo xcode-select --switch /Applications/Xcode_16.app
- name: Install conformance runner
run: make installconformancerunner
- name: Run conformance tests
Expand All @@ -116,8 +116,8 @@ jobs:
with:
go-version: 1.21.x
- name: Select Xcode version
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md#xcode
run: sudo xcode-select --switch /Applications/Xcode_16.app
- name: Run unit tests
run: make testunit
run-swiftlint:
Expand Down

0 comments on commit 30d3ccf

Please sign in to comment.