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
|
||||
|
||||
# Define a job to be invoked later in a workflow.
|
||||
# See: https://circleci.com/docs/configuration-reference/#jobs
|
||||
jobs:
|
||||
say-hello:
|
||||
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
|
||||
# See: https://circleci.com/docs/configuration-reference/#executor-job
|
||||
build:
|
||||
working_directory: ~/project
|
||||
docker:
|
||||
- image: cimg/base:stable
|
||||
# Add steps to the job
|
||||
# See: https://circleci.com/docs/configuration-reference/#steps
|
||||
- image: cimg/android:2022.01
|
||||
environment:
|
||||
- BUILD_ANDROID=YES
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: "Say hello"
|
||||
command: "echo Hello, World!"
|
||||
name: Install Dependencies
|
||||
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
|
||||
# See: https://circleci.com/docs/configuration-reference/#workflows
|
||||
workflows:
|
||||
say-hello-workflow:
|
||||
jobs:
|
||||
- say-hello
|
||||
wget https://dl.google.com/android/repository/android-ndk-r22-linux-x86_64.zip -nv
|
||||
wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz -nv
|
||||
|
||||
- run:
|
||||
name: Setup Android
|
||||
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