Skip to content

Commit

Permalink
Add Intro to flutter_gpu (#2265)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
domesticmouse authored Dec 4, 2024
1 parent e43ed79 commit 85575f6
Show file tree
Hide file tree
Showing 1,409 changed files with 52,391 additions and 1 deletion.
2 changes: 2 additions & 0 deletions flutter_ci_script_beta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ declare -a CODELABS=(
"haiku_generator"
"homescreen_codelab"
"in_app_purchases"
# TODO(domesticmouse): Add after beta is above Dart 3.7.0-0
# "intro_flutter_gpu"
"namer"
# TODO(domesticmouse): Color.red/green/blue are deprecated
# "next-gen-ui"
Expand Down
1 change: 1 addition & 0 deletions flutter_ci_script_master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ declare -a CODELABS=(
"haiku_generator"
"homescreen_codelab"
"in_app_purchases"
"intro_flutter_gpu"
"namer"
# TODO(domesticmouse): Color.red/green/blue are deprecated
# "next-gen-ui"
Expand Down
14 changes: 13 additions & 1 deletion flutter_ci_script_shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,19 @@ function ci_codelabs () {
if [ -d "test" ]
then
if grep -q "flutter:" "pubspec.yaml"; then
flutter test

# intro_flutter_gpu only runs with Impeller
if [ $CODELAB = 'intro_flutter_gpu' ]; then
if [ $RUNNER_OS = 'macOS' ] || [ $RUNNER_OS = 'Windows' ]; then
flutter config --enable-native-assets
flutter build `echo $RUNNER_OS | tr '[:upper:]' '[:lower:]'` --debug
flutter test --enable-impeller
else
echo "Skipping $CODELAB on $RUNNER_OS"
fi
else
flutter test
fi
else
# If the project is not a Flutter project, use the Dart CLI.
dart test
Expand Down
2 changes: 2 additions & 0 deletions flutter_ci_script_stable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ declare -a CODELABS=(
"haiku_generator"
"homescreen_codelab"
"in_app_purchases"
# TODO(domesticmouse): Add after stable is above Dart 3.7.0-0
# "intro_flutter_gpu"
"namer"
"next-gen-ui"
"testing_codelab"
Expand Down
Loading

0 comments on commit 85575f6

Please sign in to comment.