Update AGP and JAVA Version to make it compatible with Gradle 8.7 and Add support for Streaming #224
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 Example App | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} | |
strategy: | |
fail-fast: false | |
matrix: | |
variant: [debug, release] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- run: dart pub get | |
- run: dart format --output=none --set-exit-if-changed . | |
- run: dart analyze | |
- run: flutter pub get | |
working-directory: example/ | |
#- run: flutter test | |
- run: flutter build apk --${{ matrix.variant }} --verbose | |
working-directory: example/ | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: example-apk-${{ matrix.variant }} | |
path: example/build/app/outputs/flutter-apk/app-${{ matrix.variant }}.apk | |