Skip to content

Remove all ic_action_book.png icons. #576

Remove all ic_action_book.png icons.

Remove all ic_action_book.png icons. #576

Workflow file for this run

# The name of our workflow
name: Build
on: [push]
jobs:
Build:
runs-on: ubuntu-20.04
environment: CI
env:
OPENFST_TAG: 1.8.1-android
THRAX_TAG: 1.3.6-android
NDK_VER: 25.2.9519653
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Decode Keystore
env:
ENCODED_KS: ${{ secrets.KEYSTORE }}
run: |
TMP_KEYSTORE_FILE_PATH="${RUNNER_TEMP}"/keystore
mkdir -p "${TMP_KEYSTORE_FILE_PATH}"
echo "$ENCODED_KS" | base64 -di > "${TMP_KEYSTORE_FILE_PATH}"/simaromur_ks.jks
ls -al "${TMP_KEYSTORE_FILE_PATH}"
- name: set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- uses: nttld/setup-ndk@v1
with:
ndk-version: r25c
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Get CMake
uses: lukka/[email protected]
#- name: Install NDK
# run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;${NDK_VER}" --sdk_root=${ANDROID_SDK_ROOT}
- name: Setup NDK
run: |
echo "ANDROID_NDK=$ANDROID_HOME/ndk/${NDK_VER}" >> $GITHUB_ENV
echo "ANDROID_NDK_HOME=$ANDROID_HOME/ndk/${NDK_VER}" >> $GITHUB_ENV
echo "NDK_HOME=$ANDROID_HOME/ndk/${NDK_VER}" >> $GITHUB_ENV
- name: "Check build env"
run: |
pwd
ls -al
echo "ANDROID_HOME:"
ls -al $ANDROID_HOME/
- name: "Create local.properties"
run: |
echo "3rdparty.dir=`pwd`/3rdparty/ndk" >>local.properties
- name: Cache native libs
uses: actions/cache@v2
env:
cache-name: cache-native-libs
with:
# cache key is unique to the combination of all native lib tags
path: 3rdparty/
key: ${{ env.OPENFST_TAG }}_${{ env.THRAX_TAG }}_dl_${{ env.cache-name }}
- name: "Download & extract native libs"
run: .github/scripts/dl_3rdparty.sh
shell: bash
- name: "Build the app"
run: |
git submodule update --init
./gradlew assemble
./gradlew build -x test
env:
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
- name: Archive reports
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: archive-reports
path: |
app/build/reports/**/*