-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (38 loc) · 1.01 KB
/
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
name: Build
on: [push]
jobs:
build:
name: Build APK
# runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-latest]
version: ["3.10.x", "3.22.x", "3.24.x"]
include:
- os: macOS-latest
TARGET: macos
- os: ubuntu-latest
TARGET: linux
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "oracle"
java-version: "17"
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.version }}
channel: "stable" # optional, default to: 'stable'
- run: flutter pub get
- name: Build APK
if: startsWith(matrix.os, 'ubuntu')
run: |
cd example
flutter build apk --debug
- name: Build iOS
if: startsWith(matrix.os, 'macOS')
run: |
cd example
flutter build ios --debug --no-codesign