Flutter Beta CI #52
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: Flutter Beta CI | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
env: | |
FLUTTER_CHANNEL: 'beta' | |
jobs: | |
build-android: | |
name: "Build Android apk" | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: example | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
cache: true | |
- run: flutter pub get | |
- name: Build example APK | |
run: flutter build apk | |
- name: Upload apk as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: maplibre-flutter-demo.apk | |
path: example/build/app/outputs/flutter-apk/app-release.apk | |
build-iOS: | |
name: Build iOS package | |
runs-on: macos-latest | |
defaults: | |
run: | |
working-directory: example | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
cache: true | |
- uses: maxim-lobanov/setup-cocoapods@v1 | |
with: | |
podfile-path: example/ios/Podfile.lock | |
- run: flutter pub get | |
- name: Build iOS package | |
run: flutter build ios --simulator | |
- name: Upload Runner.app as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: maplibre-flutter-demo.app | |
path: example/build/ios/iphonesimulator | |
build-web: | |
name: "Build web" | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: example | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
cache: true | |
- run: flutter pub get | |
- name: Build web | |
run: flutter build web |