-
Notifications
You must be signed in to change notification settings - Fork 10
54 lines (46 loc) · 1.25 KB
/
main.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
on:
push:
branches:
- main
pull_request:
branches:
- main
name: Build & Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.9"
channel: 'stable'
architecture: x64
- name: Install dependencies
run: flutter pub get
- name: Run tests
run: flutter test
# - name: Build debug apk
# Build Android
# run: flutter build apk --debug --split-per-abi
# Build iOS
# run: |
# flutter build ios --no-codesign
# cd build/ios/iphoneos
# mkdir Payload
# cd Payload
# ln -s ../Runner.app
# cd ..
# zip -r app.ipa Payload
# - name: Push to Releases
# uses: ncipollo/release-action@v1
# with:
# artifacts: "build/app/outputs/flutter-apk/*.apk"
# tag: v1.0.${{ github.run_number }}
# token: ${{ secrets.TOKEN }}