-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af4b97a
commit c36fd6c
Showing
4 changed files
with
67 additions
and
80 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Build mobile apps & check tests | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build-android: | ||
name: Build android | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11' | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.16.9' | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Generate l10n | ||
run: flutter gen-l10n | ||
- name: Build apk | ||
run: flutter build apk | ||
- name: Build appbundle | ||
run: flutter build appbundle | ||
|
||
build-ios: | ||
name: Build ios | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
architecture: x64 | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Generate l10n | ||
run: flutter gen-l10n | ||
- name: Build ios | ||
run: flutter build ios --release --no-codesign | ||
|
||
check-tests: | ||
name: Check Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.16.9' | ||
channel: 'stable' | ||
- name: Flutter doctor | ||
run: flutter doctor | ||
- name: Get dependencies | ||
run: flutter pub get | ||
- name: Run l10n generation | ||
run: flutter gen-l10n | ||
- name: Run tests | ||
run: flutter test | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.