SkyEmu v4 #1354
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 Android | |
on: [push,pull_request] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] | |
- name: Setup Ninja | |
uses: seanmiddleditch/gha-setup-ninja@master | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' # See 'Supported distributions' for available options | |
java-version: '17' | |
- name: Setup Android SDK | |
uses: android-actions/[email protected] | |
- name: Build Release apk | |
run: | | |
cd tools/android_project/ | |
./gradlew assembleRelease | |
ls app/build/outputs/apk/release/ | |
- name: GH Release 🚀 | |
# You may pin to the exact commit or the version. | |
uses: actions/upload-artifact@v2 | |
with: | |
name: AndroidRelease | |
path: tools/android_project/app/build/outputs/apk/release/com.sky.SkyEmu-*-release.apk | |