This commit is contained in:
@@ -45,6 +45,8 @@ jobs:
|
||||
- name: Install Flutter SDK
|
||||
run: |
|
||||
# 使用 shallow git clone 获取 stable 分支(更可靠且节省带宽)
|
||||
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
|
||||
export PUB_HOSTED_URL=https://pub.flutter-io.cn
|
||||
git clone https://github.com/flutter/flutter.git -b stable --depth 1 $HOME/flutter || true
|
||||
echo "$HOME/flutter/bin" >> $GITHUB_PATH
|
||||
export PATH="$HOME/flutter/bin:$PATH"
|
||||
|
||||
Reference in New Issue
Block a user