Compare commits
3
Commits
0d0da4ca62
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d1cb47dbd | ||
|
|
8035a3d8f7 | ||
|
|
0cd95daab0 |
@@ -237,14 +237,9 @@ jobs:
|
||||
- name: Setup Flutter
|
||||
run: |
|
||||
set -e
|
||||
# Try Google storage, fallback to GitHub mirror
|
||||
if ! curl -fsSL --connect-timeout 10 "https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_${{ env.FLUTTER_VERSION }}-stable.tar.xz" \
|
||||
-o /tmp/flutter.tar.xz 2>/dev/null; then
|
||||
echo "Google storage unavailable, trying GitHub mirror..."
|
||||
curl -fsSL "https://github.com/flutter/flutter/releases/download/${{ env.FLUTTER_VERSION }}-stable/flutter_macos_${{ env.FLUTTER_VERSION }}-stable.tar.xz" \
|
||||
-o /tmp/flutter.tar.xz
|
||||
fi
|
||||
tar -xf /tmp/flutter.tar.xz -C "$PWD"
|
||||
curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_arm64_${{ env.FLUTTER_VERSION }}-stable.zip" \
|
||||
-o /tmp/flutter.zip
|
||||
unzip /tmp/flutter.zip -d "$PWD"
|
||||
export PATH="$PWD/flutter/bin:$PATH"
|
||||
flutter --version
|
||||
|
||||
|
||||
Reference in new issue
Block a user