Skip to content

📝 更新说明

📝 更新说明 #127

Workflow file for this run

name: Flutter CI
# This workflow is triggered on pushes to the repository.
on:
push:
branches:
- develop
- master
- release/*
pull_request:
branches:
- develop
jobs:
build:
# This job will run on macos virtual machine
runs-on: macos-13
steps:
# Setup Java environment in order to build the Android app.
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '11.x'
# Setup the flutter environment.
- uses: subosito/flutter-action@v1
with:
channel: 'stable' # 'dev', 'alpha', default to: 'stable'
# flutter-version: '1.22.x' # you can also specify exact version of flutter
# Get flutter dependencies.
- run: flutter pub get
# Check for any formatting issues in the code.
- run: dart format --set-exit-if-changed .
# Statically analyze the Dart code for any errors.
- run: dart analyze .
#####
# Build app
#####
# Build apk.
- run: cd example && flutter build apk
# Build ios
- run: cd example && flutter build ios --no-codesign