Merge pull request #552 from ably/ECO-5020/fix-build-gradle #326
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
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
ios: | |
runs-on: "macos-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.24" | |
cache: true | |
- name: "Build example app for iOS" | |
run: | | |
flutter pub get | |
cd example && flutter build ios --no-codesign | |
android: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.24" | |
cache: true | |
- name: "Build example app for Android" | |
run: | | |
flutter pub get | |
cd example && flutter build apk |