Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lyc8503/moonlight-android-no-keyboard-shortcut
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: AirLi1507/moonlight-android-no-keyboard-shortcut
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 23, 2024

  1. Create android-ci.yml

    AirLi1507 authored Nov 23, 2024
    Copy the full SHA
    f808abc View commit details
Showing with 56 additions and 0 deletions.
  1. +56 −0 .github/workflows/android-ci.yml
56 changes: 56 additions & 0 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Android CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Install Android SDK and NDK
run: |
mkdir /home/runner/android && cd /home/runner/android
sudo apt install -y unzip
wget https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
unzip commandlinetools-linux-11076708_latest.zip
export PATH=$PATH:/home/runner/android/cmdline-tools/bin/
yes | sdkmanager --sdk_root=/home/runner/android "platforms;android-34" "build-tools;34.0.0" "ndk;26.2.11394342"
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Update submodules
run: git submodule update --init --recursive

- name: Create local.properties
run: echo "ndk.dir=/home/runner/android/ndk/26.2.11394342" > local.properties

- name: Build with Gradle
run: |
./gradlew assembleNonRootRelease
- name: Sign APK
run: |
keytool -genkey -v -keystore my-release-key.keystore -alias temp_key -keyalg RSA -keysize 2048 -validity 10000 -storepass password -keypass password -dname "CN=GitHubActionsTemporaryKey"
/home/runner/android/build-tools/34.0.0/apksigner sign --ks my-release-key.keystore --ks-key-alias temp_key --ks-pass pass:password --key-pass pass:password --out app-nonRoot-release-signed.apk app/build/outputs/apk/nonRoot/release/app-nonRoot-release-unsigned.apk
- name: Upload APK
uses: actions/upload-artifact@v4.3.1
with:
name: Moonlight APK
path: app-nonRoot-release-signed.apk