-
Notifications
You must be signed in to change notification settings - Fork 946
107 lines (98 loc) · 2.78 KB
/
voltron_build_tests.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: '[voltron] build tests'
on:
pull_request:
branches:
- main
- master
- v3.0-dev
- v3.0
paths:
- 'renderer/voltron/**'
- 'framework/voltron/**'
- 'devtools/**'
- 'dom/**'
- 'driver/js/include/**'
- 'driver/js/src/**'
defaults:
run:
working-directory: framework/voltron/example
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
voltron_framework_flutter_analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.3.8'
channel: 'stable'
- name: framework flutter pub get
run: flutter pub get
- name: framework flutter analyze
run: flutter analyze
working-directory: framework/voltron
voltron_renderer_flutter_analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.3.8'
channel: 'stable'
- name: renderer flutter pub get
run: flutter pub get
- name: renderer flutter analyze
run: flutter analyze
working-directory: renderer/voltron
voltron_renderer_flutter_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.3.8'
channel: 'stable'
- name: renderer flutter pub get
run: flutter pub get
- name: renderer flutter test
run: flutter test
working-directory: renderer/voltron
voltron_android_flutter_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.3.8'
channel: 'stable'
- name: flutter pub get
run: flutter pub get
- name: Build for Android
run: flutter build apk
voltron_ios_xcframework_build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build framework for iOS
run: python3 script/build.py -os ios -arch arm64 -rebuild
working-directory: framework/voltron
voltron_ios_flutter_build:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.3.8'
channel: 'stable'
architecture: x64
- name: flutter pub get
run: flutter pub get
- name: Build for iOS
run: flutter build ios --release --no-codesign
env:
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app/Contents/Developer