-
-
Notifications
You must be signed in to change notification settings - Fork 27
40 lines (34 loc) · 941 Bytes
/
CI.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
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
build_apk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21.x"
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- uses: actions/cache@v4
with:
path: /opt/hostedtoolcache/flutter
key: flutter-install-cache
- name: Setup Flutter
run: |
flutter config --no-analytics
flutter pub get
sh ./scripts/generate_code.sh
- name: Build APKs
run: flutter build apk --build-number $(printf '%(%Y%m%d)T\n' -1) --debug
- name: Upload build artifacts
uses: actions/[email protected]
with:
name: APK
path: ./build/app/outputs/apk/debug/app-debug.apk
retention-days: 30