Merge pull request #460 from johnnguyen-ultra-messenger-39/master #121
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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the workflow will run | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- 1.* | |
jobs: | |
build_android: | |
name: Build Flutter (Android) | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./example | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: '12.x' | |
distribution: 'zulu' | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
flutter-version: "3.3.3" | |
- name: Dependencies | |
run: flutter pub get | |
working-directory: ${{env.working-directory}} | |
- name: Build APK | |
working-directory: ${{env.working-directory}} | |
run: flutter build apk --debug | |
build_ios: | |
name: Build Flutter (iOS) | |
runs-on: macOS-latest | |
env: | |
working-directory: ./example | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: '12.x' | |
distribution: 'zulu' | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
flutter-version: "3.3.3" | |
architecture: x64 | |
- name: Dependencies | |
run: flutter pub get | |
working-directory: ${{env.working-directory}} | |
- name: Build IPA | |
working-directory: ${{env.working-directory}} | |
run: flutter build ios --release --no-codesign |