From 9e3c149d6dc7ac57edf7d7e233d7b0e599616472 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Thu, 22 Aug 2024 20:10:34 +0000 Subject: [PATCH] Add hack to auto-increment build ID for x64 android build --- .github/workflows/github.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index cd8498c2e..937882025 100644 --- a/.github/workflows/github.yml +++ b/.github/workflows/github.yml @@ -177,6 +177,11 @@ jobs: distribution: 'temurin' java-version: '11' + # a hack to build ID for x64 build in order for Google Play to allow upload of both 32 and 64 bit builds + - name: Bump Android x64 build ID + if: ${{ matrix.platform == 'android-64' }} + run: perl -i -pe 's/versionCode (\d+)/$x=$1+1; "versionCode $x"/e' android/vcmi-app/build.gradle + - name: Build Number run: | source '${{github.workspace}}/CI/get_package_name.sh'