2018-11-14 02:11:05 +00:00
|
|
|
---
|
2022-04-04 18:19:56 +00:00
|
|
|
format_version: '11'
|
2018-11-14 02:11:05 +00:00
|
|
|
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
|
|
|
|
project_type: android
|
|
|
|
trigger_map:
|
|
|
|
- push_branch: "*"
|
|
|
|
workflow: primary
|
|
|
|
- pull_request_source_branch: "*"
|
|
|
|
workflow: primary
|
2022-04-04 18:19:56 +00:00
|
|
|
- tag: "*"
|
|
|
|
workflow: deploy
|
2018-11-14 02:11:05 +00:00
|
|
|
workflows:
|
|
|
|
deploy:
|
|
|
|
steps:
|
2022-04-04 18:19:56 +00:00
|
|
|
- activate-ssh-key@4: {}
|
|
|
|
- git-clone@6: {}
|
|
|
|
- cache-pull@2: {}
|
|
|
|
- script@1:
|
2018-11-19 00:23:41 +00:00
|
|
|
title: Install newer cmake
|
|
|
|
inputs:
|
2022-04-04 18:19:56 +00:00
|
|
|
- content: |-
|
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
sdkmanager --install "cmake;3.18.1"
|
|
|
|
- install-missing-android-tools@2.3:
|
2018-11-14 02:11:05 +00:00
|
|
|
inputs:
|
|
|
|
- gradlew_path: "$PROJECT_LOCATION/gradlew"
|
2022-04-04 18:19:56 +00:00
|
|
|
- android-lint@0:
|
2018-11-14 02:11:05 +00:00
|
|
|
inputs:
|
|
|
|
- project_location: "$PROJECT_LOCATION"
|
|
|
|
- module: "$MODULE"
|
2022-04-04 18:19:56 +00:00
|
|
|
- variant: "$BUILD_VARIANT"
|
|
|
|
- android-build@0:
|
2018-11-14 02:11:05 +00:00
|
|
|
inputs:
|
2022-04-04 18:19:56 +00:00
|
|
|
- variant: "$BUILD_VARIANT"
|
2018-11-14 02:11:05 +00:00
|
|
|
- project_location: "$PROJECT_LOCATION"
|
2022-04-04 18:19:56 +00:00
|
|
|
- build_type: aab
|
|
|
|
- sign-apk@1:
|
|
|
|
run_if: '{{getenv "BITRISEIO_ANDROID_KEYSTORE_URL" | ne ""}}'
|
|
|
|
- bitrise-step-export-universal-apk@0:
|
|
|
|
run_if: '{{getenv "BITRISEIO_ANDROID_KEYSTORE_URL" | ne ""}}'
|
|
|
|
- generate-changelog@0: {}
|
|
|
|
- github-release@0:
|
|
|
|
run_if: '{{getenv "GITHUB_API_TOKEN" | ne ""}}'
|
2018-11-14 02:11:05 +00:00
|
|
|
inputs:
|
2022-04-04 18:19:56 +00:00
|
|
|
- api_token: "$GITHUB_API_TOKEN"
|
|
|
|
- name: "$BITRISE_GIT_TAG"
|
|
|
|
- body: "$BITRISE_CHANGELOG"
|
|
|
|
- files_to_upload: |-
|
|
|
|
$BITRISE_AAB_PATH|citra-$BITRISE_GIT_TAG.aab
|
|
|
|
$BITRISE_APK_PATH|citra-$BITRISE_GIT_TAG.apk
|
|
|
|
- username: "$BITRISEIO_GIT_REPOSITORY_OWNER"
|
|
|
|
- deploy-to-bitrise-io@1.3:
|
2018-11-14 02:11:05 +00:00
|
|
|
run_if: '{{getenv "BITRISEIO_ANDROID_KEYSTORE_URL" | ne ""}}'
|
2022-04-04 18:19:56 +00:00
|
|
|
- cache-push@2: {}
|
|
|
|
- deploy-to-bitrise-io@2: {}
|
2018-11-14 02:11:05 +00:00
|
|
|
primary:
|
|
|
|
steps:
|
2022-04-04 18:19:56 +00:00
|
|
|
- activate-ssh-key@4: {}
|
|
|
|
- git-clone@6: {}
|
|
|
|
- cache-pull@2: {}
|
|
|
|
- script@1:
|
|
|
|
title: Deps
|
2018-11-14 02:11:05 +00:00
|
|
|
inputs:
|
2022-04-04 18:19:56 +00:00
|
|
|
- content: |-
|
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
sdkmanager --install "cmake;3.18.1"
|
|
|
|
- install-missing-android-tools@3:
|
2018-11-19 00:23:41 +00:00
|
|
|
inputs:
|
2022-04-04 18:19:56 +00:00
|
|
|
- gradlew_path: "$PROJECT_LOCATION/gradlew"
|
|
|
|
- android-lint@0:
|
2018-11-14 02:11:05 +00:00
|
|
|
inputs:
|
|
|
|
- project_location: "$PROJECT_LOCATION"
|
|
|
|
- module: "$MODULE"
|
2022-04-04 18:19:56 +00:00
|
|
|
- variant: "$BUILD_VARIANT"
|
|
|
|
- android-build@1:
|
2018-11-14 02:11:05 +00:00
|
|
|
inputs:
|
2022-04-04 18:19:56 +00:00
|
|
|
- variant: "$BUILD_VARIANT"
|
2018-11-14 02:11:05 +00:00
|
|
|
- project_location: "$PROJECT_LOCATION"
|
2022-04-04 18:19:56 +00:00
|
|
|
- build_type: apk
|
|
|
|
- cache-push@2: {}
|
|
|
|
- deploy-to-bitrise-io@2: {}
|
|
|
|
meta:
|
|
|
|
bitrise.io:
|
|
|
|
stack: linux-docker-android-20.04
|
2018-11-14 02:11:05 +00:00
|
|
|
app:
|
|
|
|
envs:
|
|
|
|
- opts:
|
|
|
|
is_expand: false
|
|
|
|
PROJECT_LOCATION: src/android
|
|
|
|
- opts:
|
|
|
|
is_expand: false
|
|
|
|
MODULE: app
|
|
|
|
- opts:
|
|
|
|
is_expand: false
|
|
|
|
BUILD_VARIANT: Release
|
|
|
|
- opts:
|
|
|
|
is_expand: false
|