Skip to content

Commit 1ea6da3

Browse files
committed
Fix macos build failed to download artifact
1 parent 90342cf commit 1ea6da3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

action.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ then
2727
fi
2828

2929
# Apple Intel or Apple Silicon
30-
if [[ $OS == macos && $ARCH == 'arm64' && $FLUTTER_VERSION == 3.* ]]
30+
if [[ $OS == "macos" && $ARCH == "arm64" && $FLUTTER_VERSION < 3.* ]]
3131
then
32-
FLUTTER_OS="${FLUTTER_OS}_$ARCH"
32+
echo -e "::error::Flutter SDK version \"${FLUTTER_VERSION}\" is not supported on Apple Silicon. Please use version 3.0.0 or higher."
33+
exit 1
3334
fi
3435

3536
# Flutter runner tool cache and pub cache

0 commit comments

Comments
 (0)