Skip to content

Android CI

Android CI #67

Workflow file for this run

name: Android CI
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.0.0
with:
submodules: 'true'
- name: set up JDK 17
uses: actions/setup-java@v3.12.0
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Decode Keystore
env:
ENCODED_KEYSTORE: ${{ secrets.SIGNING_KEY }}
ENCODED_PROPS: ${{ secrets.KEYSTORE_PROPERTIES }}
run: |
echo $ENCODED_KEYSTORE | base64 -di > keystore.jks
echo $ENCODED_PROPS | base64 -di > keystore.properties
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleEmulatorRelease
- name: Prepare artifact
run: |
mkdir -p artifact/mapping
mv app/build/outputs/native-debug-symbols/**/* artifact
mv app/build/outputs/mapping/**/* artifact/mapping
(cd artifact && zip -r "$OLDPWD/symbols.zip" .)
- name: Get version
id: get_version
run: |
msg=$(git log -1 --pretty=format:"%s")
echo "version=${msg#* }" >> $GITHUB_OUTPUT
- name: Draft GitHub Release
uses: "marvinpinto/action-automatic-releases@v1.2.1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ steps.get_version.outputs.version }}
prerelease: true
draft: true
files: |
app/build/outputs/apk/**/*.apk
symbols.zip