-
Notifications
You must be signed in to change notification settings - Fork 26
74 lines (67 loc) · 1.91 KB
/
forui_build.yaml
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
name: Forui Build
on:
workflow_dispatch: {}
push:
paths:
- .github/workflows/forui_build.yaml
- forui/**
pull_request:
paths:
- forui/**
jobs:
test:
name: Build & test
runs-on: ubuntu-latest
defaults:
run:
working-directory: forui
steps:
- uses: actions/checkout@v4
- uses: subosito/[email protected]
with:
flutter-version: ${{ vars.ACTUALLY_WORKING_FLUTTER_VERSION }}
cache: true
- run: flutter pub get
- run: flutter pub run build_runner build --delete-conflicting-outputs
- run: flutter analyze
- run: flutter test
build-android:
name: Build Android
runs-on: ubuntu-latest
defaults:
run:
working-directory: forui/example
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- uses: subosito/[email protected]
with:
flutter-version: ${{ vars.ACTUALLY_WORKING_FLUTTER_VERSION }}
cache: true
- run: flutter pub get
- run: flutter pub run build_runner build --delete-conflicting-outputs
- run: flutter analyze
- run: flutter test
- run: flutter build appbundle --debug --no-pub --no-tree-shake-icons
build-ios:
name: Build iOS
runs-on: macos-latest
defaults:
run:
working-directory: forui/example
steps:
- uses: actions/checkout@v4
- uses: subosito/[email protected]
with:
flutter-version: ${{ vars.ACTUALLY_WORKING_FLUTTER_VERSION }}
cache: true
- run: flutter pub get
- run: flutter pub run build_runner build --delete-conflicting-outputs
- run: flutter analyze
- run: flutter test
- run: pod repo update
working-directory: forui/example/ios
- run: flutter build ios --debug --no-codesign --no-pub