Skip to content

Commit dd6b109

Browse files
authored
Update CI to use M1 Runners/macOS 14 + Xcode 15.2 (#245)
Updates our runners to use the [now-available-to-open-source M1 runners](https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/) powered by macOS 14. Also updates our Xcode version to 15.2.
1 parent 33cde3c commit dd6b109

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

.github/workflows/ci.yaml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ permissions:
99
contents: read
1010
jobs:
1111
build-eliza-cocoapods-example:
12-
runs-on: macos-13
12+
runs-on: macos-14
1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Select Xcode version
16-
# https://github.com/actions/runner-images/releases/tag/macos-13%2F20231218.2
17-
run: sudo xcode-select --switch /Applications/Xcode_15.1.app
16+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
17+
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
1818
- name: Install xcbeautify
1919
run: brew install xcbeautify
2020
- name: Build Eliza CocoaPods example
@@ -23,69 +23,69 @@ jobs:
2323
pod install
2424
set -o pipefail && xcodebuild -workspace ElizaCocoaPodsApp.xcworkspace -scheme ElizaCocoaPodsApp build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify
2525
build-eliza-swiftpm-example:
26-
runs-on: macos-13
26+
runs-on: macos-14
2727
steps:
2828
- uses: actions/checkout@v4
2929
- name: Select Xcode version
30-
# https://github.com/actions/runner-images/releases/tag/macos-13%2F20231218.2
31-
run: sudo xcode-select --switch /Applications/Xcode_15.1.app
30+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
31+
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
3232
- name: Install xcbeautify
3333
run: brew install xcbeautify
3434
- name: Build Eliza Swift PM example
3535
run: |
3636
cd Examples/ElizaSwiftPackageApp
3737
set -o pipefail && xcodebuild -scheme ElizaSwiftPackageApp build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify
3838
build-library-ios:
39-
runs-on: macos-13
39+
runs-on: macos-14
4040
steps:
4141
- uses: actions/checkout@v4
4242
- name: Select Xcode version
43-
# https://github.com/actions/runner-images/releases/tag/macos-13%2F20231218.2
44-
run: sudo xcode-select --switch /Applications/Xcode_15.1.app
43+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
44+
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
4545
- name: Install xcbeautify
4646
run: brew install xcbeautify
4747
- name: Build Connect iOS library
48-
run: set -o pipefail && xcodebuild -scheme Connect-Package -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.2' | xcbeautify
48+
run: set -o pipefail && xcodebuild -scheme Connect-Package -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.3' | xcbeautify
4949
build-library-macos:
50-
runs-on: macos-13
50+
runs-on: macos-14
5151
steps:
5252
- uses: actions/checkout@v4
5353
- name: Select Xcode version
54-
# https://github.com/actions/runner-images/releases/tag/macos-13%2F20231218.2
55-
run: sudo xcode-select --switch /Applications/Xcode_15.1.app
54+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
55+
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
5656
- name: Install xcbeautify
5757
run: brew install xcbeautify
5858
- name: Build Connect macOS library
5959
run: set -o pipefail && xcodebuild -scheme Connect-Package -destination 'platform=macOS' | xcbeautify
6060
build-library-tvos:
61-
runs-on: macos-13
61+
runs-on: macos-14
6262
steps:
6363
- uses: actions/checkout@v4
6464
- name: Select Xcode version
65-
# https://github.com/actions/runner-images/releases/tag/macos-13%2F20231218.2
66-
run: sudo xcode-select --switch /Applications/Xcode_15.1.app
65+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
66+
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
6767
- name: Install xcbeautify
6868
run: brew install xcbeautify
6969
- name: Build Connect tvOS library
70-
run: set -o pipefail && xcodebuild -scheme Connect-Package -destination 'platform=tvOS Simulator,name=Apple TV,OS=17.2' | xcbeautify
70+
run: set -o pipefail && xcodebuild -scheme Connect-Package -destination 'platform=tvOS Simulator,name=Apple TV,OS=17.3' | xcbeautify
7171
build-library-watchos:
72-
runs-on: macos-13
72+
runs-on: macos-14
7373
steps:
7474
- uses: actions/checkout@v4
7575
- name: Select Xcode version
76-
# https://github.com/actions/runner-images/releases/tag/macos-13%2F20231218.2
77-
run: sudo xcode-select --switch /Applications/Xcode_15.1.app
76+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
77+
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
7878
- name: Install xcbeautify
7979
run: brew install xcbeautify
8080
- name: Build Connect watchOS library
81-
run: set -o pipefail && xcodebuild -scheme Connect-Package -destination 'platform=watchOS Simulator,name=Apple Watch Series 9 (45mm),OS=10.2' | xcbeautify
81+
run: set -o pipefail && xcodebuild -scheme Connect-Package -destination 'platform=watchOS Simulator,name=Apple Watch Series 9 (45mm),OS=10.3' | xcbeautify
8282
build-plugin-and-generate:
83-
runs-on: macos-13
83+
runs-on: macos-14
8484
steps:
8585
- uses: actions/checkout@v4
8686
- name: Select Xcode version
87-
# https://github.com/actions/runner-images/releases/tag/macos-13%2F20231218.2
88-
run: sudo xcode-select --switch /Applications/Xcode_15.1.app
87+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
88+
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
8989
- uses: bufbuild/[email protected]
9090
with:
9191
github_token: ${{ github.token }}
@@ -98,26 +98,26 @@ jobs:
9898
git update-index --refresh --add --remove
9999
git diff-index --quiet HEAD --
100100
run-conformance-tests:
101-
runs-on: macos-13
101+
runs-on: macos-14
102102
steps:
103103
- uses: actions/checkout@v4
104104
- name: Select Xcode version
105-
# https://github.com/actions/runner-images/releases/tag/macos-13%2F20231218.2
106-
run: sudo xcode-select --switch /Applications/Xcode_15.1.app
105+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
106+
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
107107
- name: Install conformance runner
108108
run: make installconformancerunner
109109
- name: Run conformance tests
110110
run: make testconformance
111111
run-unit-tests:
112-
runs-on: macos-13
112+
runs-on: macos-14
113113
steps:
114114
- uses: actions/checkout@v4
115115
- uses: actions/setup-go@v5
116116
with:
117117
go-version: 1.21.x
118118
- name: Select Xcode version
119-
# https://github.com/actions/runner-images/releases/tag/macos-13%2F20231218.2
120-
run: sudo xcode-select --switch /Applications/Xcode_15.1.app
119+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
120+
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
121121
- name: Run unit tests
122122
run: make testunit
123123
run-swiftlint:

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ permissions:
88
contents: write
99
jobs:
1010
release:
11-
runs-on: macos-13
11+
runs-on: macos-14
1212
steps:
1313
- uses: actions/checkout@v4
1414
- name: Select Xcode version
15-
# https://github.com/actions/runner-images/releases/tag/macos-13%2F20231218.2
16-
run: sudo xcode-select --switch /Applications/Xcode_15.1.app
15+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
16+
run: sudo xcode-select --switch /Applications/Xcode_15.2.app
1717
- uses: bufbuild/[email protected]
1818
with:
1919
github_token: ${{ github.token }}

0 commit comments

Comments
 (0)