Skip to content

Commit 9560e19

Browse files
committed
[ci] Migrate Cirrus tests to Apple Silicon
1 parent 8ac5729 commit 9560e19

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.cirrus.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ macos_template: &MACOS_TEMPLATE
2525
# Only one macOS task can run in parallel without credits, so use them for
2626
# PRs on macOS.
2727
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
28-
osx_instance:
29-
image: big-sur-xcode-13
28+
# Run tasks on Apple Silicon.
29+
macos_instance:
30+
image: ghcr.io/cirruslabs/macos-monterey-xcode:13.4
3031

3132
flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE
3233
upgrade_flutter_script:
@@ -243,11 +244,11 @@ task:
243244
CHANNEL: "stable"
244245
create_simulator_script:
245246
- xcrun simctl list
246-
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-15-0 | xargs xcrun simctl boot
247+
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-13 com.apple.CoreSimulator.SimRuntime.iOS-15-5 | xargs xcrun simctl boot
247248
build_script:
248249
- ./script/tool_runner.sh build-examples --ios
249250
native_test_script:
250-
- ./script/tool_runner.sh native-test --ios --ios-destination "platform=iOS Simulator,name=iPhone 11,OS=latest"
251+
- ./script/tool_runner.sh native-test --ios --ios-destination "platform=iOS Simulator,name=iPhone 13,OS=latest"
251252
- name: ios-custom_package_tests
252253
env:
253254
PATH: $PATH:/usr/local/bin

0 commit comments

Comments
 (0)