2021-05-29 12:13:44 -04:00
|
|
|
name: Flutter
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-09-07 10:30:43 -04:00
|
|
|
branches: [develop, main, "feature/**", "patch/**"]
|
2021-05-29 12:13:44 -04:00
|
|
|
pull_request:
|
2022-09-07 10:30:43 -04:00
|
|
|
branches: [develop, main, "feature/**", "patch/**"]
|
2021-05-29 12:13:44 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
android:
|
2022-09-07 10:42:54 -04:00
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform: [ubuntu-latest, windows-latest, macOS-latest]
|
2021-05-29 12:13:44 -04:00
|
|
|
steps:
|
2022-09-06 14:01:31 -04:00
|
|
|
- uses: actions/checkout@v3
|
2021-05-29 12:13:44 -04:00
|
|
|
- uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: "12.x"
|
2022-09-06 14:01:31 -04:00
|
|
|
- uses: subosito/flutter-action@v2
|
2021-05-29 12:13:44 -04:00
|
|
|
with:
|
|
|
|
channel: "stable"
|
|
|
|
- run: flutter pub get
|
|
|
|
- run: flutter build apk
|
|
|
|
- run: flutter build appbundle
|
|
|
|
|
|
|
|
ios:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
2022-09-06 14:01:31 -04:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: subosito/flutter-action@v2
|
2021-05-29 12:13:44 -04:00
|
|
|
with:
|
|
|
|
channel: "stable"
|
|
|
|
- run: flutter pub get
|
|
|
|
- run: flutter build ios --release --no-codesign
|