Update config.yml
This commit is contained in:
@@ -1,26 +1,41 @@
|
|||||||
# Use the latest 2.1 version of CircleCI pipeline process engine.
|
|
||||||
# See: https://circleci.com/docs/configuration-reference
|
|
||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
# Define a job to be invoked later in a workflow.
|
|
||||||
# See: https://circleci.com/docs/configuration-reference/#jobs
|
|
||||||
jobs:
|
jobs:
|
||||||
say-hello:
|
build:
|
||||||
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
|
working_directory: ~/project
|
||||||
# See: https://circleci.com/docs/configuration-reference/#executor-job
|
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/base:stable
|
- image: cimg/android:2022.01
|
||||||
# Add steps to the job
|
environment:
|
||||||
# See: https://circleci.com/docs/configuration-reference/#steps
|
- BUILD_ANDROID=YES
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: "Say hello"
|
name: Install Dependencies
|
||||||
command: "echo Hello, World!"
|
command: |
|
||||||
|
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
|
||||||
|
#!/bin/bash -eo pipefail
|
||||||
|
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -qq install wget unzip libgd-dev libc6-i386 lib32stdc++6 lib32gcc-s1 lib32ncurses6 lib32z1 jq ant lib32ncurses6 libgd-dev
|
||||||
|
|
||||||
# Orchestrate jobs using workflows
|
wget https://dl.google.com/android/repository/android-ndk-r22-linux-x86_64.zip -nv
|
||||||
# See: https://circleci.com/docs/configuration-reference/#workflows
|
wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz -nv
|
||||||
workflows:
|
|
||||||
say-hello-workflow:
|
- run:
|
||||||
jobs:
|
name: Setup Android
|
||||||
- say-hello
|
command: |
|
||||||
|
export ANDROID="android-sdk-linux/tools/android"
|
||||||
|
export PATH="$PATH:$ANDROID_HOME/tools"
|
||||||
|
unzip android-ndk-r22-linux-x86_64.zip
|
||||||
|
tar -zxf android-sdk_r24.4.1-linux.tgz
|
||||||
|
$ANDROID list sdk --extended -a &&
|
||||||
|
echo yes | $ANDROID update sdk -a -t tools,platform-tools,build-tools-23.0.1,android-23 --no-ui --force --no-https
|
||||||
|
sudo apt-get install openjdk-11-jdk
|
||||||
|
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
|
||||||
|
export PATH=$JAVA_HOME/bin:$PATH
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: Build Android
|
||||||
|
command: |
|
||||||
|
echo $PWD
|
||||||
|
bash ./tools/circle-script.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user