android: set up cmake
This commit is contained in:
51
bitrise.yml
51
bitrise.yml
@@ -42,19 +42,31 @@ workflows:
|
||||
|
||||
The next change in your repository that matches any of your trigger map event will start **deploy** workflow.
|
||||
steps:
|
||||
- activate-ssh-key@4.0.3:
|
||||
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
|
||||
- git-clone@4.0.11: {}
|
||||
- cache-pull@2.0.1: {}
|
||||
- script@1.1.5:
|
||||
title: Do anything with Script step
|
||||
- install-missing-android-tools@2.2.0:
|
||||
title: Install newer cmake
|
||||
inputs:
|
||||
- content: |-
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
sudo apt remove cmake -y
|
||||
sudo apt purge --auto-remove cmake -y
|
||||
sudo apt install ninja-build -y
|
||||
version=3.8
|
||||
build=2
|
||||
mkdir ~/temp
|
||||
cd ~/temp
|
||||
wget https://cmake.org/files/v$version/cmake-$version.$build-Linux-x86_64.sh
|
||||
sudo mkdir /opt/cmake
|
||||
sudo sh cmake-$version.$build-Linux-x86_64.sh --prefix=/opt/cmake --skip-license --exclude-subdir
|
||||
envman add --key PATH --value "/opt/cmake/bin:$PATH"
|
||||
- install-missing-android-tools@2.3.3:
|
||||
inputs:
|
||||
- gradlew_path: "$PROJECT_LOCATION/gradlew"
|
||||
- change-android-versioncode-and-versionname@1.1.1:
|
||||
inputs:
|
||||
- build_gradle_path: "$PROJECT_LOCATION/$MODULE/build.gradle"
|
||||
- android-lint@0.9.4:
|
||||
- android-lint@0.9.5:
|
||||
inputs:
|
||||
- project_location: "$PROJECT_LOCATION"
|
||||
- module: "$MODULE"
|
||||
@@ -71,17 +83,32 @@ workflows:
|
||||
- variant: "$BUILD_VARIANT"
|
||||
- sign-apk@1.2.3:
|
||||
run_if: '{{getenv "BITRISEIO_ANDROID_KEYSTORE_URL" | ne ""}}'
|
||||
- deploy-to-bitrise-io@1.3.15: {}
|
||||
- deploy-to-bitrise-io@1.3.18: {}
|
||||
- cache-push@2.0.5: {}
|
||||
primary:
|
||||
steps:
|
||||
- cache-pull@2.0.1: {}
|
||||
- script@1.1.5:
|
||||
title: Do anything with Script step
|
||||
- install-missing-android-tools@2.2.0:
|
||||
title: Install newer cmake
|
||||
inputs:
|
||||
- gradlew_path: "$PROJECT_LOCATION/gradlew"
|
||||
- android-lint@0.9.4:
|
||||
- content: |-
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
sudo apt remove cmake -y
|
||||
sudo apt purge --auto-remove cmake -y
|
||||
sudo apt install ninja-build -y
|
||||
version=3.8
|
||||
build=2
|
||||
mkdir ~/temp
|
||||
cd ~/temp
|
||||
wget https://cmake.org/files/v$version/cmake-$version.$build-Linux-x86_64.sh
|
||||
sudo mkdir /opt/cmake
|
||||
sudo sh cmake-$version.$build-Linux-x86_64.sh --prefix=/opt/cmake --skip-license --exclude-subdir
|
||||
envman add --key PATH --value "/opt/cmake/bin:$PATH"
|
||||
- install-missing-android-tools@2.3.3:
|
||||
inputs:
|
||||
- gradlew_path: "$PROJECT_LOCATION/gradlew"
|
||||
- android-lint@0.9.5:
|
||||
inputs:
|
||||
- project_location: "$PROJECT_LOCATION"
|
||||
- module: "$MODULE"
|
||||
@@ -90,7 +117,7 @@ workflows:
|
||||
inputs:
|
||||
- variant: Debug
|
||||
- project_location: "$PROJECT_LOCATION"
|
||||
- deploy-to-bitrise-io@1.3.15: {}
|
||||
- deploy-to-bitrise-io@1.3.18: {}
|
||||
- cache-push@2.0.5: {}
|
||||
app:
|
||||
envs:
|
||||
|
Reference in New Issue
Block a user