Change app package name #53
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: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
push: | |
paths-ignore: | |
- 'README.md' | |
permissions: | |
contents: read | |
jobs: | |
debug-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gradle/wrapper-validation-action@v2 | |
- name: Download ROM | |
run: | | |
mkdir ./app/src/main/assets | |
cd ./app/src/main/assets | |
curl -OL https://github.com/topminipie/twoyi/releases/download/0.5.4-rom/rootfs.7z | |
- name: Install JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Install NDK | |
uses: nttld/setup-ndk@v1 | |
with: | |
ndk-version: r26b | |
local-cache: true | |
- name: Install Rust | |
run: | | |
rustup update | |
rustup target add aarch64-linux-android | |
- name: Rust cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: "app/rs" | |
- name: Install my fork cargo-ndk | |
run: | | |
cargo install --git https://github.com/topminipie/cargo-ndk.git | |
- name: Build libtwoyi.so | |
run: | | |
cd ./app/rs | |
cargo ndk -t arm64-v8a -o ../src/main/jniLibs build --release | |
- name: Check code formatting | |
continue-on-error: true | |
run: | | |
cd ./app/rs | |
cargo fmt --all -- --check | |
- name: Build app | |
run: ./gradlew assembleDebug --warning-mode all | |
- name: Upload Apk | |
uses: actions/upload-artifact@v4 | |
with: | |
name: apk | |
path: app/build/outputs/apk/debug/app-debug.apk |