mirror of
https://github.com/EasyTier/astral.git
synced 2025-05-19 10:30:24 +00:00
构建.yml
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
name: Dart and Flutter Build
|
||||
|
||||
on:
|
||||
workflow_dispatch: # 手动触发
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# 安装 Dart
|
||||
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
|
||||
|
||||
# 安装 Flutter
|
||||
- name: Install Flutter
|
||||
run: |
|
||||
git clone https://github.com/flutter/flutter.git -b stable
|
||||
echo "$(pwd)/flutter/bin" >> $GITHUB_PATH
|
||||
|
||||
# 安装 Dart 依赖
|
||||
- name: Install Dart dependencies
|
||||
run: dart pub get
|
||||
|
||||
# 分析项目源代码
|
||||
- name: Analyze project source
|
||||
run: dart analyze
|
||||
|
||||
# 运行测试
|
||||
- name: Run tests
|
||||
run: dart test
|
||||
|
||||
# 编译 Flutter Windows 应用
|
||||
- name: Build Flutter Windows Release
|
||||
run: flutter build windows --release
|
||||
Reference in New Issue
Block a user