This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
systemui: Update StatusBarShowChargeInfo #126
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: Android CI | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- 'README.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.0.0 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3.12.0 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Cache Gradle Dependencies | |
uses: actions/cache@v3.3.2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
!~/.gradle/caches/build-cache-* | |
key: gradle-deps-core-${{ hashFiles('**/build.gradle.kts') }} | |
restore-keys: gradle-deps | |
- name: Cache Gradle Build | |
uses: actions/cache@v3.3.2 | |
with: | |
path: | | |
~/.gradle/caches/build-cache-* | |
~/.gradle/buildOutputCleanup/cache.properties | |
key: gradle-builds-core-${{ github.sha }} | |
restore-keys: gradle-builds | |
- name: Build with Gradle | |
run: | | |
echo ${{ secrets.SIGNING_KEY }} | base64 -d > keystore.jks | |
bash ./gradlew assemble | |
env: | |
KEYSTORE_PATH: "../keystore.jks" | |
KEYSTORE_PASS: ${{ secrets.KEY_STORE_PASSWORD }} | |
KEY_ALIAS: ${{ secrets.ALIAS }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
- name: Upload Release APK | |
uses: actions/upload-artifact@v3.1.3 | |
with: | |
name: Miui_XXL-Release | |
path: "app/build/outputs/apk/release/*.apk" | |
- name: Upload Debug APK | |
uses: actions/upload-artifact@v3.1.3 | |
with: | |
name: Miui_XXL-Debug | |
path: "app/build/outputs/apk/debug/*.apk" |