Skip to content

Commit 85575f6

Browse files
Add Intro to flutter_gpu (#2265)
## Pre-launch Checklist - [x] I read the [Effective Dart: Style] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-devrel channel on [Discord]. <!-- Links --> [Effective Dart: Style]: https://dart.dev/guides/language/effective-dart/style [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md
1 parent e43ed79 commit 85575f6

File tree

1,409 files changed

+52391
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,409 files changed

+52391
-1
lines changed

flutter_ci_script_beta.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ declare -a CODELABS=(
2525
"haiku_generator"
2626
"homescreen_codelab"
2727
"in_app_purchases"
28+
# TODO(domesticmouse): Add after beta is above Dart 3.7.0-0
29+
# "intro_flutter_gpu"
2830
"namer"
2931
# TODO(domesticmouse): Color.red/green/blue are deprecated
3032
# "next-gen-ui"

flutter_ci_script_master.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ declare -a CODELABS=(
2525
"haiku_generator"
2626
"homescreen_codelab"
2727
"in_app_purchases"
28+
"intro_flutter_gpu"
2829
"namer"
2930
# TODO(domesticmouse): Color.red/green/blue are deprecated
3031
# "next-gen-ui"

flutter_ci_script_shared.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,19 @@ function ci_codelabs () {
4747
if [ -d "test" ]
4848
then
4949
if grep -q "flutter:" "pubspec.yaml"; then
50-
flutter test
50+
51+
# intro_flutter_gpu only runs with Impeller
52+
if [ $CODELAB = 'intro_flutter_gpu' ]; then
53+
if [ $RUNNER_OS = 'macOS' ] || [ $RUNNER_OS = 'Windows' ]; then
54+
flutter config --enable-native-assets
55+
flutter build `echo $RUNNER_OS | tr '[:upper:]' '[:lower:]'` --debug
56+
flutter test --enable-impeller
57+
else
58+
echo "Skipping $CODELAB on $RUNNER_OS"
59+
fi
60+
else
61+
flutter test
62+
fi
5163
else
5264
# If the project is not a Flutter project, use the Dart CLI.
5365
dart test

flutter_ci_script_stable.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ declare -a CODELABS=(
2525
"haiku_generator"
2626
"homescreen_codelab"
2727
"in_app_purchases"
28+
# TODO(domesticmouse): Add after stable is above Dart 3.7.0-0
29+
# "intro_flutter_gpu"
2830
"namer"
2931
"next-gen-ui"
3032
"testing_codelab"

0 commit comments

Comments
 (0)