-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.44 KB
/
release_android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Release Android Apk
on:
# 手动触发
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
# 使用本项目
- name: Checkout repository
uses: actions/checkout@v4
# 设置jdk
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 17
# 设置flutter
- name: Set up Flutter
uses: subosito/[email protected]
with:
flutter-version: 3.19.3
channel: # optional, default is stable
# 获取flutter依赖
- name: Get Flutter dependencies
run: flutter pub get
# 构建apk
- name: Build APK
run: flutter build apk --split-per-abi
- name: Upload Artifact x86_64-release.apk
uses: actions/upload-artifact@v4
with:
name: app-x86_64-release
path: build/app/outputs/flutter-apk/app-x86_64-release.apk
- name: Upload Artifact armeabi-v7a-release.apk
uses: actions/upload-artifact@v4
with:
name: app-armeabi-v7a-release
path: build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk
- name: Upload Artifact arm64-v8a-release.apk
uses: actions/upload-artifact@v4
with:
name: app-arm64-v8a-release
path: build/app/outputs/flutter-apk/app-arm64-v8a-release.apk