Skip to content

Commit 2f75188

Browse files
authored
ci: use td-setup-flutter (Tencent#787)
* Update main.ts * Change Flutter setup action and streamline workflow Updated Flutter setup action and removed unnecessary commands. * Update preview-build.yml
1 parent 1c1e1fb commit 2f75188

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/preview-build.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,12 @@ jobs:
3939
SKIP_JDK_VERSION_CHECK: true
4040

4141
- name: Set up Flutter
42-
uses: subosito/flutter-action@v2
42+
uses: TDesignOteam/workflows/setup-flutter@main
4343
with:
4444
flutter-version: 3.32.0
4545
channel: stable
46-
- run: |
47-
flutter --version
48-
cd ${{ env.FLUTTER_ROOT }}
49-
curl -L https://raw.githubusercontent.com/TDesignOteam/tdesign-flutter-aop-registry/main/patch_flutter/3.24~3.32.patch | git apply --allow-empty
50-
git status
51-
rm bin/cache/flutter_tools.stamp
46+
aop-registry: true
47+
5248
- name: Extract version from pubspec.yaml and set env
5349
id: version
5450
run: |

0 commit comments

Comments
 (0)