From 915e377007c88bd23314e8121428e6ae9584a0ba Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Sun, 24 Sep 2023 10:09:53 +0200 Subject: [PATCH] feat(tool): precache flutter if not run in CI Signed-off-by: Nikolas Rimikis --- tool/setup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tool/setup.sh b/tool/setup.sh index 3d92fae1..6d7b4bc2 100755 --- a/tool/setup.sh +++ b/tool/setup.sh @@ -7,5 +7,10 @@ for package in $(yq -r ".dev_dependencies | keys | .[]" pubspec.yaml); do dart pub global activate "$package" "$version" done echo "y" | fvm install + +if [ ! -v GITHUB_REPOSITORY ]; then + fvm flutter precache +fi + melos bootstrap fvm dart run husky install