-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (45 loc) · 1.48 KB
/
Copy pathandroid.yml
File metadata and controls
57 lines (45 loc) · 1.48 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
name: Android CI/CD Production Pipeline
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
jobs:
validate_and_build:
name: Validate and Compile Release Engine
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./mob
steps:
- name: Checkout Source Tree
uses: actions/checkout@v4
- name: Initialize Java JDK Environment
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- name: Initialize Flutter Framework
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- name: Fetch Package Dependencies
run: flutter pub get
# Relaxed Formatting: Formats code but won't fail the build
- name: Verify Code Base Formatting
run: dart format .
# Relaxed Linter: Fails on critical errors, warns on minor info/styling lints
- name: Static Analysis Check
run: flutter analyze --no-fatal-infos --no-fatal-warnings
- name: Execute Core Test Suite
run: flutter test
- name: Compile Production APK (Standard Release)
run: flutter build apk --release
- name: Upload Compiled Production Binary
uses: actions/upload-artifact@v4
with:
name: OpenSpark-v0.1.0-Beta-APK
path: mob/build/app/outputs/flutter-apk/app-release.apk
retention-days: 7