File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 53
53
54
54
# Fix Flutter SDK version for Apple Silicon
55
55
FLUTTER_BUILD_OS=$FLUTTER_OS
56
- if [[ $OS == " macos" && $ARCH == " arm64" ]]; then
56
+ if [[ $FLUTTER_OS == " macos" && $FLUTTER_ARCH == " arm64" ]]; then
57
57
if [[ $FLUTTER_VERSION < 3.* ]]; then
58
58
echo -e " ::error::Flutter SDK version \" ${FLUTTER_VERSION} \" is not supported on Apple Silicon. Please use version 3.0.0 or higher."
59
59
exit 1
@@ -108,7 +108,7 @@ if [ ! -d "${FLUTTER_RUNNER_TOOL_CACHE}" ]; then
108
108
109
109
# Extracting installation archive
110
110
echo -n " Extracting Flutter SDK archive..."
111
- if [[ $OS == linux ]]
111
+ if [[ $FLUTTER_OS == linux ]]
112
112
then
113
113
tar -C " ${FLUTTER_RUNNER_TOOL_CACHE} " -xf ${FLUTTER_BUILD_ARTIFACT_FILE} > /dev/null
114
114
EXTRACT_ARCHIVE_CODE=$?
@@ -123,7 +123,7 @@ if [ ! -d "${FLUTTER_RUNNER_TOOL_CACHE}" ]; then
123
123
exit 1
124
124
fi
125
125
else
126
- echo " Flutter SDK version restored from cache: ${FLUTTER_VERSION} (${FLUTTER_CHANNEL} ) on \" ${FLUTTER_OS} _${ARCH } \" "
126
+ echo " Flutter SDK version restored from cache: ${FLUTTER_VERSION} (${FLUTTER_CHANNEL} ) on \" ${FLUTTER_OS} _${FLUTTER_ARCH } \" "
127
127
fi
128
128
129
129
# Configure pub to use a fixed location.
You can’t perform that action at this time.
0 commit comments