Merge pull request #339 from privacyidea/338-catching-ioclients-clien… #178
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 Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build_ios: | |
name: (iOS) | |
runs-on: macos-latest | |
timeout-minutes: 15 | |
strategy: | |
# When set to true, GitHub cancels all in-progress jobs if any | |
# matrix job fails. | |
fail-fast: false | |
matrix: | |
api-level: [21,31] # [minSdk, most used, newest (30 is not working :(] 19 would be minSDK but does not support x86_64 | |
target: [default] # [default, google_apis] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '17.0.7' | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
flutter-version: '3.10.5' | |
- run: "flutter upgrade" | |
- run: "flutter --version" | |
- run: "flutter pub get" | |
- run: "flutter build ios -t 'lib/main_netknights.dart' --no-codesign" | |
build_appbundle: | |
name: (Android) | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
strategy: | |
# When set to true, GitHub cancels all in-progress jobs if any | |
# matrix job fails. | |
fail-fast: false | |
matrix: | |
api-level: [ 21, 30, 34 ] # [minSdk, most used, newest] | |
target: [ default ] # [default, google_apis] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '17.0.7' | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
flutter-version: '3.10.5' | |
- run: "flutter upgrade" | |
- run: "flutter --version" | |
- run: "flutter pub get" | |
- run: 'flutter clean' | |
- run: "flutter build apk -t 'lib/main_netknights.dart' --debug" | |