Makes the app to work with Flutter 3.10.x. #28
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
name: Build | |
on: [push] | |
jobs: | |
build: | |
name: Build APK | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macOS-latest, ubuntu-latest] | |
version: ["3.10.x", "3.19.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 | |
working-directory: ./example | |
- name: Build iOS App | |
if: startsWith(matrix.os, 'macOS') | |
run: | | |
flutter doctor | |
flutter build ios --debug --no-codesign | |
working-directory: ./example | |
- name: Build Android APK | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
flutter doctor | |
flutter build apk --debug | |
working-directory: ./example |