Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Intro to flutter_gpu #2265

Merged
merged 17 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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 on macOS
if [ $CODELAB = 'intro_flutter_gpu' ]; then
if [ $RUNNER_OS = 'macOS' ]; 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
Loading