Merge pull request #539 from ably/enable-workflow-dispatch #310
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@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.0.x" | |
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@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "11" | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.0.x" | |
cache: true | |
- name: "Build example app for Android" | |
run: | | |
flutter pub get | |
cd example && flutter build apk |