android: update kotlin version #39
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: Build and Test | |
on: | |
push: | |
branches: | |
- main | |
- development | |
- 'release/**' | |
pull_request: | |
branches: | |
- main | |
- development | |
- 'release/**' | |
env: | |
FLUTTER_CHANNEL: 'stable' | |
FLUTTER_VERSION: '3.24.4' | |
jobs: | |
build_example_android: | |
runs-on: [ ubuntu-latest ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
- run: flutter pub get | |
- run: cd ./example && flutter build apk | |
- run: echo "build success!" | |
build_example_linux: | |
runs-on: [ ubuntu-latest ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
- run: sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libasound2 libasound2-dev | |
- run: flutter config --enable-linux-desktop | |
- run: flutter pub get | |
- run: cd ./example && flutter build linux | |
- run: echo "build success!" | |
build_example_windows: | |
runs-on: [ windows-latest ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
- run: flutter config --enable-windows-desktop | |
- run: flutter pub get | |
- run: (cd ./example) -and (flutter build windows) | |
- run: echo "build success!" | |
build_example_ios: | |
runs-on: [ self-hosted, macos ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
- run: flutter pub get | |
- run: cd ./example && flutter build ios --no-codesign | |
- run: echo "build success!" | |
build_example_macos: | |
runs-on: [ self-hosted, macos ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
- run: flutter config --enable-macos-desktop | |
- run: flutter pub get | |
- run: cd ./example && flutter build macos | |
- run: echo "build success!" |