代码拉取完成,页面将自动刷新
name: Build
# This workflow is triggered on pushes to the repository.
on:
push:
branches:
- master
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@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
# Setup the flutter environment.
- uses: subosito/flutter-action@v2
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。