Beta build #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Beta build" | |
on: | |
push: | |
branches: | |
- main | |
merge_group: | |
pull_request: | |
branches: | |
- main | |
types: [ opened, synchronize ] | |
workflow_call: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
code-analysis: | |
uses: ./.github/workflows/code-analysis.yml | |
ui-tests: | |
uses: ./.github/workflows/gradle-run-ui-tests.yml | |
unit-tests: | |
uses: ./.github/workflows/gradle-run-unit-tests.yml | |
build-app: | |
needs: [ code-analysis, ui-tests, unit-tests ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive # Needed in order to fetch Kalium sources for building | |
fetch-depth: 0 | |
- name: Set up JDK 17 | |
uses: buildjet/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Decode Keystore | |
env: | |
ENCODED_STRING: ${{ secrets.ENCODED_KEYSTORE_PRE_RELEASE }} | |
run: | | |
TMP_KEYSTORE_FILE_PATH="${RUNNER_TEMP}"/keystore | |
mkdir "${TMP_KEYSTORE_FILE_PATH}" | |
echo $ENCODED_STRING | base64 -di > "${TMP_KEYSTORE_FILE_PATH}"/the.keystore | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Build beta flavour APK | |
run: | |
./gradlew app:assembleBetaRelease | |
env: | |
KEYSTORE_FILE_PATH_DEBUG: ${{ vars.KEYSTORE_FILE_PATH }} | |
KEYSTORE_FILE_PATH_RELEASE: ${{ vars.KEYSTORE_FILE_PATH }} | |
KEYSTORE_FILE_PATH_COMPAT: ${{ vars.KEYSTORE_FILE_PATH }} | |
KEYSTORE_FILE_PATH_COMPAT_RELEASE: ${{ vars.KEYSTORE_FILE_PATH }} | |
KEYSTORE_KEY_NAME_RELEASE: ${{ secrets.SIGNING_KEY_ALIAS_PRE_RELEASE }} | |
KEYPWD_RELEASE: ${{ secrets.SIGNING_KEY_PASSWORD_PRE_RELEASE }} | |
KEYSTOREPWD_RELEASE: ${{ secrets.SIGNING_STORE_PASSWORD_PRE_RELEASE }} | |
ENABLE_SIGNING: ${{ secrets.ENABLE_SIGNING }} | |
- name: Build beta flavour Bundle | |
run: | |
./gradlew app:bundleBetaRelease | |
env: | |
KEYSTORE_FILE_PATH_DEBUG: ${{ vars.KEYSTORE_FILE_PATH }} | |
KEYSTORE_FILE_PATH_RELEASE: ${{ vars.KEYSTORE_FILE_PATH }} | |
KEYSTORE_FILE_PATH_COMPAT: ${{ vars.KEYSTORE_FILE_PATH }} | |
KEYSTORE_FILE_PATH_COMPAT_RELEASE: ${{ vars.KEYSTORE_FILE_PATH }} | |
KEYSTORE_KEY_NAME_RELEASE: ${{ secrets.SIGNING_KEY_ALIAS_PRE_RELEASE }} | |
KEYPWD_RELEASE: ${{ secrets.SIGNING_KEY_PASSWORD_PRE_RELEASE }} | |
KEYSTOREPWD_RELEASE: ${{ secrets.SIGNING_STORE_PASSWORD_PRE_RELEASE }} | |
ENABLE_SIGNING: ${{ secrets.ENABLE_SIGNING }} | |
- name: Upload | |
if: success() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Build Artifacts | |
path: app/build/outputs/ |