Skip to content

feat: 升级flutter版本 #146

feat: 升级flutter版本

feat: 升级flutter版本 #146

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Dart
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Note: This workflow uses the latest stable version of the Dart SDK.
# You can specify other versions if desired, see documentation here:
# https://github.com/dart-lang/setup-dart/blob/main/README.md
# - uses: dart-lang/setup-dart@v1
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.27.0'
channel: 'stable'
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Install dependencies
run: flutter pub get
- name: Run tests
run: flutter test
- name: Generate Gradle Wrapper
working-directory: android
run: gradle wrapper
- name: Build APK
working-directory: android
run: |
chmod +x gradlew
./gradlew assembleRelease
- name: Upload Release APK
uses: actions/upload-artifact@v3
with:
name: app-release
path: android/app/build/outputs/apk/release/app-release.apk