1
0

chore: Update build configuration

This commit is contained in:
Natsu 2024-06-18 19:29:03 +07:00
parent e43275d6fe
commit e13edcbb16
Signed by: NatsumeLS
GPG Key ID: 6DB67FB460CF46C6

View File

@ -26,15 +26,6 @@ jobs:
restore-keys: | restore-keys: |
gradle-${{ runner.os }}- gradle-${{ runner.os }}-
- name: Cache CMake
uses: actions/cache@v3
with:
path: |
/usr/local/lib/android/sdk/cmake/3.22.1
key: cmake-${{ runner.os }}-3.22.1
restore-keys: |
cmake-${{ runner.os }}-
- name: Install Dependencies - name: Install Dependencies
run: | run: |
sdkmanager --install "cmake;3.22.1" sdkmanager --install "cmake;3.22.1"
@ -58,8 +49,8 @@ jobs:
- name: Build with Gradle - name: Build with Gradle
run: ./gradlew build run: ./gradlew build
- uses: ilharp/sign-android-release@v1 - name: Sign APK
name: Sign App APK uses: ilharp/sign-android-release@v1
id: sign_app id: sign_app
with: with:
releaseDir: app/build/outputs/apk/debug releaseDir: app/build/outputs/apk/debug
@ -76,7 +67,8 @@ jobs:
mv ${{steps.sign_app.outputs.signedFile}} app/build/outputs/apk/debug/Gakumas-Localify-EN_$branch.$hash.apk mv ${{steps.sign_app.outputs.signedFile}} app/build/outputs/apk/debug/Gakumas-Localify-EN_$branch.$hash.apk
echo "SIGNED_APK=app/build/outputs/apk/debug/Gakumas-Localify-EN_$branch.$hash.apk" >> $GITHUB_ENV echo "SIGNED_APK=app/build/outputs/apk/debug/Gakumas-Localify-EN_$branch.$hash.apk" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4 - name: Upload Artifact
uses: actions/upload-artifact@v4
with: with:
name: Gakumas-Localify-EN name: Gakumas-Localify-EN
path: ${{ env.SIGNED_APK }} path: ${{ env.SIGNED_APK }}