Updates CI settings. #12
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: 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 |