Use android build box iamge.
All checks were successful
Build Android / build (push) Successful in 7m25s

This commit is contained in:
2023-06-28 17:25:48 +02:00
parent 81c540c2a5
commit 4f87321e2c

View File

@@ -2,23 +2,16 @@ name: Build Android
on: [pull_request, push] on: [pull_request, push]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest-android
steps: steps:
- name: Checkout the code - name: Checkout the code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Prepare signing - name: Prepare signing
run: | run: |
touch keystore.properties touch keystore.properties
echo "storePassword=$STOREPASSWORD" >> keystore.properties echo "storePassword=${{ secrets.STOREPASSWORD }}" >> keystore.properties
echo "keyPassword=$KEYPASSWORD" >> keystore.properties echo "keyPassword=${{ secrets.KEYPASSWORD }}" >> keystore.properties
echo "keyAlias=key0" >> keystore.properties echo "keyAlias=key0" >> keystore.properties
echo "storeFile=../AndroidKey" >> keystore.properties echo "storeFile=../AndroidKey" >> keystore.properties
@@ -28,5 +21,11 @@ jobs:
let timestamp=$(date +%s)/10 let timestamp=$(date +%s)/10
echo "versionCode=$timestamp" >> version.properties echo "versionCode=$timestamp" >> version.properties
- name: Build the app - name: Test the app
run: ./gradlew build run: ./gradlew test
- name: Build apk
run: ./gradlew assembleRelease
- name: Build abb
run: ./gradlew bundleRelease