Bumping dependencies versions and Flutter version to 3.22 #177
Workflow file for this run
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 MultiPlatform Build | |
on: [ pull_request, workflow_dispatch ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Default JDK to version 17 | |
run: sudo update-java-alternatives --set JAVA_HOME_17_X64 | |
- name: Flutter Install | |
uses: subosito/flutter-action@v2.16.0 | |
with: | |
channel: 'stable' | |
architecture: x64 | |
cache: true | |
- name: Flutter Android Build | |
run: | | |
flutter pub get | |
flutter analyze | |
flutter build apk --dart-define=BNG_API_KEY=${{ secrets.SECRET_API_KEY }} | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: release-android-apk | |
path: build/app/outputs/flutter-apk/app-release.apk | |
build-ios: | |
needs: build | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Default JDK to version 17 | |
run: sudo update-java-alternatives --set JAVA_HOME_17_X64 | |
- name: Flutter Install | |
uses: subosito/flutter-action@v2.16.0 | |
with: | |
channel: 'stable' | |
architecture: x64 | |
cache: true | |
- name: Flutter IOS Build | |
run: | | |
flutter pub get | |
flutter analyze | |
flutter build ipa --release --no-codesign --dart-define=BNG_API_KEY=${{ secrets.SECRET_API_KEY }} | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: Runner.xcarchive | |
path: /Users/runner/work/GuardianDock/GuardianDock/build/ios/archive/Runner.xcarchive |