Skip to content

Updates CI settings. #12

Updates CI settings.

Updates CI settings. #12

Workflow file for this run

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