Skip to content

Commit

Permalink
feat: precache
Browse files Browse the repository at this point in the history
  • Loading branch information
wrbl606 committed Jul 12, 2024
1 parent fa1b054 commit 096c95e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions install-flutter-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ while getopts 'c:p:' param; do
esac
done

FLUTTER_PATH="$GITHUB_ACTION_PATH/flutter"
FLUTTER_PATH=$(join_path "$GITHUB_ACTION_PATH flutter")
git clone -b "$CHANNEL" https://github.com/flutter/flutter.git "$FLUTTER_PATH"


{
echo "$FLUTTER_PATH/bin"
echo "$FLUTTER_PATH/bin/cache/dart-sdk/bin"
Expand All @@ -20,5 +21,5 @@ git clone -b "$CHANNEL" https://github.com/flutter/flutter.git "$FLUTTER_PATH"
} >> "$GITHUB_PATH"

if [[ $PRECACHE != "no" ]]; then
$FLUTTER_PATH/bin precache $PRECACHE
$FLUTTER_PATH/bin/flutter precache $PRECACHE
fi

0 comments on commit 096c95e

Please sign in to comment.