-
Notifications
You must be signed in to change notification settings - Fork 13
84 lines (79 loc) · 2.28 KB
/
pr-checks.yaml
File metadata and controls
84 lines (79 loc) · 2.28 KB
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
name: PR checks
on:
workflow_dispatch:
pull_request:
branches: [master]
jobs:
android-build:
name: Android example build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
- run: flutter pub get
working-directory: example
- run: flutter build apk
working-directory: example
- uses: actions/upload-artifact@v4
with:
name: android-build
path: |
example/build/app/outputs/flutter-apk/app-release.apk
flutter-lint:
name: Flutter lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
- run: |
flutter pub get
flutter analyze
ios-build:
name: iOS build
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
- run: flutter pub get
working-directory: example
- run: flutter build ios --release --no-codesign
working-directory: example
- uses: actions/upload-artifact@v4
with:
name: ios-build
path: |
example/build/ios/iphoneos/Runner.app
macos-build:
name: MacOS Build
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
- run: flutter config --enable-macos-desktop
working-directory: example
- run: flutter build macos
working-directory: example
- uses: actions/upload-artifact@v4
with:
name: windows-build
path: |
example/build/macos/Build/Products/Release/flutter_nsd_example.app
windows-build:
name: Windows build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
- run: |
cd example/
flutter config --enable-windows-desktop
flutter build windows
- uses: actions/upload-artifact@v4
with:
name: windows-build
path: |
example/build/windows/runner/Release/