Skip to content

Commit 9eeb105

Browse files
authored
ci: update XCode and iOS versions (#454)
* ci: update XCode and iOS versions * ci: fix brew install for latest macos * ci: install swift-format directly from brew repository
1 parent 4e5e0d8 commit 9eeb105

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.github/workflows/analyze.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,12 @@ jobs:
7070
with:
7171
path: /home/linuxbrew/.linuxbrew
7272
key: ${{ runner.os }}-linuxbrew
73-
- name: Install swift-format 600.0.0
73+
- name: Install swift-format 601.0.0
7474
if: steps.cache.outputs.cache-hit != 'true'
7575
run: |
7676
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
7777
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
78-
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/402e262f48947bad849ea7793752ff16b7038406/Formula/s/swift-format.rb
79-
echo 'brew "swift-format.rb"' > Brewfile
80-
brew bundle
78+
brew install swift-format
8179
- name: Save Cache
8280
uses: actions/cache/save@v4
8381
if: steps.cache.outputs.cache-hit != 'true'

.github/workflows/test-and-build.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ jobs:
111111
key: ${{ runner.os }}-pods-${{ hashFiles('**/*.podspec') }}
112112
restore-keys: |
113113
${{ runner.os }}-pods-
114-
- name: Select XCode 16.2
115-
run: sudo xcode-select -s '/Applications/Xcode_16.2.0.app/Contents/Developer'
114+
- name: Select XCode 16.4
115+
run: sudo xcode-select -s '/Applications/Xcode_16.4.0.app/Contents/Developer'
116116
- name: Generate necessary files with flutter build
117117
working-directory: ${{ env.working_directory }}
118118
run: flutter build ios --config-only
119119
- name: "Run iOS native unit tests"
120-
run: TEST_DEVICE='iPhone 16 Pro' TEST_OS='18.2' melos run test:ios
120+
run: TEST_DEVICE='iPhone 16 Pro' TEST_OS='18.5' melos run test:ios
121121
- name: Upload build artifact
122122
uses: actions/upload-artifact@v4
123123
with:
@@ -203,8 +203,8 @@ jobs:
203203
uses: actions/download-artifact@v4
204204
with:
205205
name: ${{ runner.os }}-build-artifact
206-
- name: Select XCode 16.2
207-
run: sudo xcode-select -s '/Applications/Xcode_16.2.0.app/Contents/Developer'
206+
- name: Select XCode 16.4
207+
run: sudo xcode-select -s '/Applications/Xcode_16.4.0.app/Contents/Developer'
208208
- name: "Run build for iOS"
209209
run: melos run flutter-build-ios
210210
- name: Upload build artifact
@@ -331,8 +331,8 @@ jobs:
331331
flutter-version: "3.32.x"
332332
channel: "stable"
333333
cache: true
334-
- name: Select XCode 16.2
335-
run: sudo xcode-select -s '/Applications/Xcode_16.2.0.app/Contents/Developer'
334+
- name: Select XCode 16.4
335+
run: sudo xcode-select -s '/Applications/Xcode_16.4.0.app/Contents/Developer'
336336
- name: Start iOS simulator
337337
run: |
338338
SIMULATOR_NAME="iPhone 16 Pro"

0 commit comments

Comments
 (0)