-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (56 loc) · 1.63 KB
/
build-workspace.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
name: Build workspace
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches: [ main ]
paths-ignore:
- '**.md'
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
jobs:
analyze_source_code:
name: Analyze Source Code
runs-on: macos-14
concurrency:
group: build-workspace-analyze-${{ inputs.ref || github.event.pull_request.number || github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare-dependencies
- name: Analyze Dart
run: flutter analyze
- name: Analyze Kotlin
run: ktlint
- name: Analyze Swift
run: swiftlint --strict
- name: Check Dart format
run: dart format --output=none --set-exit-if-changed .
build_ios:
name: Build for iOS
runs-on: macos-14
concurrency:
group: build-workspace-ios-${{ inputs.ref || github.event.pull_request.number || github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare-dependencies
- name: Build
run: cd example && flutter build ios --no-codesign
build_android:
name: Build for Android
runs-on: ubuntu-latest
concurrency:
group: build-workspace-android-${{ inputs.ref || github.event.pull_request.number || github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare-dependencies
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Build
run: cd example && flutter build apk