Skip to content

Commit

Permalink
add android build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tom8zds authored May 29, 2024
1 parent 6ee2ca8 commit 9b157d0
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/abi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Build Abi for Android
on:
workflow_dispatch:

workflow_call:


jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -44,7 +47,7 @@ jobs:
# Upload the built artifacts as an artifact
- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.3.3
with:
name: android-abi-arm
path: rust/output
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Flutter Build & Upload Artifact

on:
workflow_dispatch:


jobs:
build-abi:
uses: ./.github/workflows/abi.yml

build-apk:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Flutter SDK
uses: subosito/[email protected]

- name: Download rust abi from artifact
uses: actions/[email protected]
with:
name: android-abi

- name: Test Abi
run: |
echo "Testing abi"
ls .
# - name: Build APK
# run: |
# flutter build apk --release
# ls -alh ./build/app/outputs/flutter-apk/*.apk
# cp -r ./build/app/outputs/flutter-apk /tmp/flutter-apk

# - name: Upload artifact
# uses: actions/upload-artifact@v2
# with:
# name: flutter-apk
# path: /tmp/flutter-apk/*.apk
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release

/android/app/src/main/jniLibs
Binary file not shown.
Binary file not shown.

0 comments on commit 9b157d0

Please sign in to comment.