Skip to content

Commit

Permalink
GitHub Actions: Use latest version of Android build tools.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Jan 11, 2024
1 parent 640109c commit c33142c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build Android

on: [push, pull_request]
env:
ANDROID_BUILD_TOOLS_VERSION: '34.0.0'
ANDROID_NDK_VERSION: '25.2.9519653'
ANDROID_CMAKE_VERSION: '3.22.1'
jobs:
Expand Down Expand Up @@ -48,15 +49,15 @@ jobs:
- name: Prepare Unsigned APKs/AAB for Distribution
if: ${{ matrix.build-type == 'apk'}}
run: |
export ANDROID_BUILD_TOOLS=$ANDROID_HOME/build-tools/29.0.3
export ANDROID_BUILD_TOOLS=$ANDROID_HOME/build-tools/${{ env.ANDROID_BUILD_TOOLS_VERSION }}
cp build_android/build/outputs/apk/release/Play-release-unsigned.apk .
cp Play-release-unsigned.apk Play-release.apk
cp build_android/build/outputs/bundle/release/Play-release.aab .
$ANDROID_BUILD_TOOLS/zipalign -c -v 4 Play-release-unsigned.apk
- name: Prepare Signed APKs for Distribution
if: ${{ matrix.build-type == 'apk' && env.ANDROID_KEYSTORE_PASS != null}}
run: |
export ANDROID_BUILD_TOOLS=$ANDROID_HOME/build-tools/29.0.3
export ANDROID_BUILD_TOOLS=$ANDROID_HOME/build-tools/${{ env.ANDROID_BUILD_TOOLS_VERSION }}
$ANDROID_BUILD_TOOLS/apksigner sign --ks installer_android/deploy.keystore --ks-key-alias deploy --ks-pass env:ANDROID_KEYSTORE_PASS --key-pass env:ANDROID_KEYSTORE_PASS Play-release.apk
$ANDROID_BUILD_TOOLS/zipalign -c -v 4 Play-release.apk
env:
Expand Down

0 comments on commit c33142c

Please sign in to comment.