Build android APK from CI
Former-commit-id: fda1b7d5b1b6176fe1b599b2f22a51f9f6b78ab0 Former-commit-id: 6365f924aefda080e64354539f8cff3f47d38088
This commit is contained in:
parent
4ea8d9ccba
commit
1eddea8a91
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
|
@ -57,6 +57,28 @@ jobs:
|
||||||
name: rustboyadvance-sdl2-x86_64-unknown-linux-gnu
|
name: rustboyadvance-sdl2-x86_64-unknown-linux-gnu
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
|
build-android-apk:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout 🛎️
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Install toolchains
|
||||||
|
run: rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android
|
||||||
|
- name: Build APK
|
||||||
|
working-directory: ./platform/android
|
||||||
|
run: ./gradlew build
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: rustdroid.apk
|
||||||
|
path: ./platform/android/app/build/outputs/apk/release/app-release-unsigned.apk
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
build-windows-64:
|
build-windows-64:
|
||||||
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
|
|
Reference in a new issue