Skip to content

Commit

Permalink
Create build_android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 authored Sep 28, 2024
1 parent bb82862 commit 21368f2
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "build_android"
on:
workflow_dispatch:

jobs:
build_android:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Clone repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter build apk --release
- run: flutter build apk --release --split-per-abi
- name: Rename Apks
run: |
mv build/app/outputs/flutter-apk/app-release.apk build/app/outputs/flutter-apk/AppRhyme_android_unknown.apk
mv build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk build/app/outputs/flutter-apk/AppRhyme_android_armeabi-v7a.apk
mv build/app/outputs/flutter-apk/app-arm64-v8a-release.apk build/app/outputs/flutter-apk/AppRhyme_android_arm64-v8a.apk
mv build/app/outputs/flutter-apk/app-x86_64-release.apk build/app/outputs/flutter-apk/AppRhyme_android_x86_64.apk
- name: Upload Apks
uses: actions/upload-artifact@v4
with:
path: |
build/app/outputs/flutter-apk/AppRhyme_android_unknown.apk
build/app/outputs/flutter-apk/AppRhyme_android_armeabi-v7a.apk
build/app/outputs/flutter-apk/AppRhyme_android_arm64-v8a.apk
build/app/outputs/flutter-apk/AppRhyme_android_x86_64.apk
compression-level: 9

0 comments on commit 21368f2

Please sign in to comment.