Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit f024969

Browse files
Move some tasks back to Intel
1 parent 2b86c93 commit f024969

File tree

1 file changed

+44
-22
lines changed

1 file changed

+44
-22
lines changed

.cirrus.yml

Lines changed: 44 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ macos_template: &MACOS_TEMPLATE
5757
# Only one macOS task can run in parallel without credits, so use them for
5858
# PRs on macOS.
5959
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
60+
61+
macos_intel_template: &MACOS_INTEL_TEMPLATE
62+
<< : *MACOS_TEMPLATE
63+
osx_instance:
64+
image: big-sur-xcode-13
65+
66+
macos_arm_template: &MACOS_ARM_TEMPLATE
67+
<< : *MACOS_TEMPLATE
6068
macos_instance:
6169
image: ghcr.io/cirruslabs/macos-monterey-xcode:13.3.1
6270

@@ -299,23 +307,12 @@ task:
299307
drive_script:
300308
- ./script/tool_runner.sh drive-examples --web --exclude=script/configs/exclude_integration_web.yaml
301309

302-
# macOS tasks.
310+
# ARM macOS tasks.
303311
task:
304-
<< : *MACOS_TEMPLATE
312+
<< : *MACOS_ARM_TEMPLATE
305313
<< : *FLUTTER_UPGRADE_TEMPLATE
306314
matrix:
307-
### iOS+macOS tasks ***
308-
- name: darwin-lint_podspecs
309-
script:
310-
- ./script/tool_runner.sh podspecs
311315
### iOS tasks ###
312-
- name: ios-build_all_plugins
313-
env:
314-
BUILD_ALL_ARGS: "ios --no-codesign"
315-
matrix:
316-
CHANNEL: "master"
317-
CHANNEL: "stable"
318-
<< : *BUILD_ALL_PLUGINS_APP_TEMPLATE
319316
- name: ios-platform_tests
320317
env:
321318
PATH: $PATH:/usr/local/bin
@@ -343,15 +340,6 @@ task:
343340
# So we run `drive-examples` after `native-test`; changing the order will result ci failure.
344341
- ./script/tool_runner.sh drive-examples --ios --exclude=script/configs/exclude_integration_ios.yaml
345342
### macOS desktop tasks ###
346-
- name: macos-build_all_plugins
347-
env:
348-
BUILD_ALL_ARGS: "macos"
349-
matrix:
350-
CHANNEL: "master"
351-
CHANNEL: "stable"
352-
setup_script:
353-
- flutter config --enable-macos-desktop
354-
<< : *BUILD_ALL_PLUGINS_APP_TEMPLATE
355343
- name: macos-platform_tests
356344
env:
357345
matrix:
@@ -367,3 +355,37 @@ task:
367355
- ./script/tool_runner.sh native-test --macos
368356
drive_script:
369357
- ./script/tool_runner.sh drive-examples --macos --exclude=script/configs/exclude_integration_macos.yaml
358+
359+
# Intel macOS tasks.
360+
task:
361+
<< : *MACOS_INTEL_TEMPLATE
362+
<< : *FLUTTER_UPGRADE_TEMPLATE
363+
matrix:
364+
### iOS+macOS tasks ***
365+
# TODO(stuartmorgan): Move this to M1 once
366+
# https://github.com/flutter/flutter/issues/103515 is resolved.
367+
- name: darwin-lint_podspecs
368+
script:
369+
- ./script/tool_runner.sh podspecs
370+
### macOS desktop tasks ###
371+
# macos-platform_tests builds all the plugins on M1, so this build is run
372+
# on Intel to give us build coverage of both host types.
373+
- name: macos-build_all_plugins
374+
env:
375+
BUILD_ALL_ARGS: "macos"
376+
matrix:
377+
CHANNEL: "master"
378+
CHANNEL: "stable"
379+
setup_script:
380+
- flutter config --enable-macos-desktop
381+
<< : *BUILD_ALL_PLUGINS_APP_TEMPLATE
382+
### iOS tasks ###
383+
# ios-platform_tests builds all the plugins on M1, so this build is run
384+
# on Intel to give us build coverage of both host types.
385+
- name: ios-build_all_plugins
386+
env:
387+
BUILD_ALL_ARGS: "ios --no-codesign"
388+
matrix:
389+
CHANNEL: "master"
390+
CHANNEL: "stable"
391+
<< : *BUILD_ALL_PLUGINS_APP_TEMPLATE

0 commit comments

Comments
 (0)