Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8035a3d8f7 | ||
|
|
0cd95daab0 |
@@ -237,14 +237,9 @@ jobs:
|
|||||||
- name: Setup Flutter
|
- name: Setup Flutter
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
# Try Google storage, fallback to GitHub mirror
|
curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_arm64_${{ env.FLUTTER_VERSION }}-stable.zip" \
|
||||||
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.zip
|
||||||
-o /tmp/flutter.tar.xz 2>/dev/null; then
|
unzip /tmp/flutter.zip -d "$PWD"
|
||||||
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"
|
|
||||||
export PATH="$PWD/flutter/bin:$PATH"
|
export PATH="$PWD/flutter/bin:$PATH"
|
||||||
flutter --version
|
flutter --version
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user