Skip to content

Commit ebf5883

Browse files
committed
Only build shader bundles on master channel
1 parent e84f307 commit ebf5883

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

flutter_ci_script_shared.sh

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@ function ci_codelabs () {
55
# Disable analytics to avoid https://github.com/dart-lang/tools/issues/249
66
dart --disable-analytics
77

8-
# Enable native assets for intro_flutter_gpu
9-
flutter config --enable-native-assets
8+
# intro_flutter_gpu requires the master channel
9+
if [ $channel = "master" ]; then
10+
# Enable native assets for intro_flutter_gpu
11+
flutter config --enable-native-assets
12+
13+
# intro_flutter_gpu needs to build the shaders before running the tests
14+
for step in "01" "02" "03" "04" "05" "06" "07" "08" "09" "10" "11" "12"
15+
do
16+
pushd intro_flutter_gpu/step_$step
17+
flutter build `echo $RUNNER_OS | tr '[:upper:]' '[:lower:]'` --debug
18+
popd
19+
done
20+
fi
1021

11-
# intro_flutter_gpu needs to build the shaders before running the tests
12-
for step in "01" "02" "03" "04" "05" "06" "07" "08" "09" "10" "11" "12"
13-
do
14-
pushd intro_flutter_gpu/step_$step
15-
flutter build `echo $RUNNER_OS | tr '[:upper:]' '[:lower:]'` --debug
16-
popd
17-
done
1822

1923
# ffigen_codelab/step_07 needs to build the native library before running the tests
2024
pushd ffigen_codelab/step_07/example

0 commit comments

Comments
 (0)