-
-
Notifications
You must be signed in to change notification settings - Fork 47
46 lines (40 loc) · 1.04 KB
/
build_executables.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
name: Build Sweyer executables
on:
pull_request:
push:
branches:
- main
- master
- 'releases/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.22.2
channel: stable
cache: true
- name: 📦 Install Dependencies
shell: bash
run: |
flutter pub global activate very_good_cli
very_good packages get --recursive
- name: 💾 Cache Gradle
uses: actions/cache@v4
with:
key: gradle
path: /home/runner/.gradle
- name: 🔨 Build Apk
shell: bash
run: |
export JAVA_HOME="$JAVA_HOME_17_X64"
flutter build apk --profile
- name: 📁 Save executables
uses: actions/upload-artifact@v4
with:
name: Android Apk
path: build/app/outputs/flutter-apk/app-profile.apk