[android] Add scheduled build script
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
format_version: 1.0.0
|
||||
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
|
||||
trigger_map:
|
||||
- pattern: scheduled
|
||||
workflow: scheduled
|
||||
- pattern: "*"
|
||||
is_pull_request_allowed: true
|
||||
workflow: primary
|
||||
workflows:
|
||||
primary:
|
||||
@@ -28,7 +29,7 @@ workflows:
|
||||
- content: |-
|
||||
#!/bin/bash
|
||||
|
||||
apt-get install pkg-config
|
||||
apt-get install -y pkg-config
|
||||
- script:
|
||||
title: Build Android SDK For arm
|
||||
inputs:
|
||||
@@ -61,5 +62,50 @@ workflows:
|
||||
failed'
|
||||
- icon_url: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-icon-128.png
|
||||
- icon_url_on_error: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-error-icon-128.png
|
||||
before_run:
|
||||
after_run:
|
||||
scheduled:
|
||||
steps:
|
||||
- script:
|
||||
title: Install Linux Dependencies
|
||||
inputs:
|
||||
- content: |-
|
||||
#!/bin/bash
|
||||
|
||||
apt-get install -y pkg-config python-pip python-dev build-essential
|
||||
pip install awscli
|
||||
- script:
|
||||
title: Fetch GPG Secring For SDK Signing
|
||||
inputs:
|
||||
- content: |-
|
||||
#!/bin/bash
|
||||
|
||||
aws s3 cp s3://mapbox/android/signing-credentials/secring.gpg android/MapboxGLAndroidSDK/secring.gpg
|
||||
opts:
|
||||
is_expand: true
|
||||
- script:
|
||||
title: Inject Signing And Publishing Credentials
|
||||
inputs:
|
||||
- content: |-
|
||||
#!/bin/bash
|
||||
|
||||
echo "NEXUS_USERNAME=$PUBLISH_NEXUS_USERNAME
|
||||
NEXUS_PASSWORD=$PUBLISH_NEXUS_PASSWORD
|
||||
signing.keyId=$SIGNING_KEYID
|
||||
signing.password=$SIGNING_PASSWORD
|
||||
signing.secretKeyRingFile=secring.gpg" >> android/MapboxGLAndroidSDK/gradle.properties
|
||||
opts:
|
||||
is_expand: true
|
||||
- script:
|
||||
title: Build Mapbox Android SDK For All ABI
|
||||
inputs:
|
||||
- content: |-
|
||||
#!/bin/bash
|
||||
|
||||
make apackage -j4
|
||||
- script:
|
||||
title: Publish To Maven Central
|
||||
inputs:
|
||||
- content: |-
|
||||
#!/bin/bash
|
||||
|
||||
cd android
|
||||
./gradlew uploadArchives
|
||||
|
||||
Reference in New Issue
Block a user