Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual Generate APK #14

Merged
merged 3 commits into from
Mar 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/manual_generate_apk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Manual Generate APK
on:
workflow_dispatch:
inputs:

buildVariant:
description: 'Build Variant'
required: true
default: 'normalOptimized'

jobs:

apk:
name: Generate normalOptimized APK
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Set up NDK
uses: nttld/setup-ndk@v1
with:
ndk-version: r21d

#- name: Print Params Values
# run: |
# # bash update_properties.sh ${{ github.event.inputs.baseUrl }} ${{ github.event.inputs.mapKey }} ${{ github.event.inputs.reAttempt }} ${{ github.event.inputs.thresholdValue }}
# touch local.properties
# echo "BASE_URL=\\"${{ github.event.inputs.baseUrl }}\\"" >> local.properties
# echo "MAP_KEY=\\"${{ github.event.inputs.mapKey }}\\"" >> local.properties
# echo "RETRY_ATTEMPTS=${{ github.event.inputs.reAttempt }}" >> local.properties
# echo "THRESHOLD_VALUE=${{ github.event.inputs.thresholdValue }}" >> local.properties

- name: Assemble app APK
run: bash ./gradlew ${{ github.event.inputs.buildVariant }} --stacktrace

- name: Upload app APK
uses: actions/upload-artifact@v1
with:
name: android-normal-optimized
path: android/build/intermediates/apk/normal/optimized/android-normal-optimized.apk