ci: Added build job for Android Google Play flavor

This commit is contained in:
OpenSauce04 2025-12-29 00:12:19 +00:00 committed by OpenSauce
parent 6751c20f52
commit a84a58b613
2 changed files with 16 additions and 6 deletions

View File

@ -9,8 +9,14 @@ fi
cd src/android
chmod +x ./gradlew
./gradlew assembleRelease
./gradlew bundleRelease
if [[ "$TARGET" == "googleplay" ]]; then
./gradlew assembleGooglePlayRelease
./gradlew bundleGooglePlayRelease
else
./gradlew assembleVanillaRelease
./gradlew bundleVanillaRelease
fi
ccache -s -v

View File

@ -221,12 +221,16 @@ jobs:
android:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: ["vanilla", "googleplay"]
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_COMPILERCHECK: content
CCACHE_SLOPPINESS: time_macros
OS: android
TARGET: universal
TARGET: ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
with:
@ -238,16 +242,16 @@ jobs:
~/.gradle/caches
~/.gradle/wrapper
${{ env.CCACHE_DIR }}
key: ${{ runner.os }}-android-${{ github.sha }}
key: ${{ runner.os }}-${{ env.OS }}-${{ matrix.target }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-android-
${{ runner.os }}-${{ env.OS }}-${{ matrix.target }}-
- name: Set tag name
run: |
if [[ "$GITHUB_REF_TYPE" == "tag" ]]; then
echo "GIT_TAG_NAME=$GITHUB_REF_NAME" >> $GITHUB_ENV
fi
echo $GIT_TAG_NAME
- name: Deps
- name: Install tools
run: |
sudo apt-get update -y
sudo apt-get install ccache apksigner -y