refactor codes #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 Android App | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Flutter SDK | |
uses: flutter-actions/setup-flutter@v2 | |
with: | |
channel: stable | |
version: 3.19.6 | |
cache: true | |
- run: flutter pub get | |
# - run: dart format --output=none --set-exit-if-changed . | |
- run: dart analyze | |
- run: flutter build apk --debug --verbose | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: apk-debug | |
path: build/app/outputs/apk/debug/app-debug.apk |