mirror of
https://github.com/RxReader/walle_kit.git
synced 2025-08-06 15:19:02 +08:00
57 lines
1.8 KiB
Dart
57 lines
1.8 KiB
Dart
name: build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build_android_debug:
|
|
name: Build Android Debug on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [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: 'stable'
|
|
- name: Run ${{ github.repository_owner }}/install-ndk@shell
|
|
run: |
|
|
sudo echo "y" | sudo $ANDROID_HOME/tools/bin/sdkmanager "ndk;21.1.6352462"
|
|
- run: flutter --version
|
|
- run: flutter pub get
|
|
- run: flutter format --dry-run --set-exit-if-changed .
|
|
- run: flutter pub publish --dry-run
|
|
- run: flutter analyze lib example/lib
|
|
- run: cd example; flutter build apk --debug
|
|
|
|
build_android_release:
|
|
name: Build Android Release on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [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: 'stable'
|
|
- name: Run ${{ github.repository_owner }}/install-ndk@shell
|
|
run: |
|
|
sudo echo "y" | sudo $ANDROID_HOME/tools/bin/sdkmanager "ndk;21.1.6352462"
|
|
- run: flutter --version
|
|
- run: flutter pub get
|
|
- run: flutter format --dry-run --set-exit-if-changed .
|
|
- run: flutter pub publish --dry-run
|
|
- run: flutter analyze lib example/lib
|
|
- run: cd example; flutter build apk
|
|
- run: ls example/build/app/outputs/apk/walle/channels/
|
|
- run: ls example/build/app/outputs/apk/walle/channels/market/
|