Remove duplicate Android SDK steps already present in container
This commit is contained in:
Родитель
41742b3fe3
Коммит
53e32a47e4
|
@ -544,10 +544,9 @@ jobs:
|
||||||
|
|
||||||
# Keep configuring Android dependencies while AVD boots up
|
# Keep configuring Android dependencies while AVD boots up
|
||||||
|
|
||||||
# Install Buck
|
|
||||||
- restore-cache: *restore-buck-downloads-cache
|
- restore-cache: *restore-buck-downloads-cache
|
||||||
- run:
|
- run:
|
||||||
name: Install BUCK
|
name: Install Buck
|
||||||
command: |
|
command: |
|
||||||
buck --version
|
buck --version
|
||||||
# Install related tooling
|
# Install related tooling
|
||||||
|
@ -670,38 +669,10 @@ jobs:
|
||||||
# Only works on stable branches when a properly tagged commit is pushed
|
# Only works on stable branches when a properly tagged commit is pushed
|
||||||
publish_npm_package:
|
publish_npm_package:
|
||||||
<<: *android_defaults
|
<<: *android_defaults
|
||||||
environment:
|
|
||||||
- ANDROID_NDK: '/opt/ndk/android-ndk-r17c'
|
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: ~/react-native
|
at: ~/react-native
|
||||||
|
|
||||||
# Configure Android SDK and related dependencies
|
|
||||||
- run:
|
|
||||||
name: Configure Environment Variables
|
|
||||||
command: |
|
|
||||||
echo 'export PATH=${ANDROID_NDK}:~/buck/bin:$PATH' >> $BASH_ENV
|
|
||||||
source $BASH_ENV
|
|
||||||
- run:
|
|
||||||
name: Install Android Build Dependencies
|
|
||||||
command: ./scripts/circleci/apt-get-android-deps.sh
|
|
||||||
|
|
||||||
- run:
|
|
||||||
name: Install Android SDK Packages
|
|
||||||
command: source scripts/android-setup.sh && getAndroidPackages
|
|
||||||
|
|
||||||
# Install Android NDK
|
|
||||||
- run:
|
|
||||||
name: Create Android NDK Directory
|
|
||||||
command: |
|
|
||||||
if [[ ! -e /opt/ndk ]]; then
|
|
||||||
sudo mkdir /opt/ndk
|
|
||||||
fi
|
|
||||||
sudo chown ${USER:=$(/usr/bin/id -run)}:$USER /opt/ndk
|
|
||||||
- run:
|
|
||||||
name: Install Android NDK
|
|
||||||
command: source scripts/android-setup.sh && getAndroidNDK
|
|
||||||
|
|
||||||
# Fetch dependencies using Buck
|
# Fetch dependencies using Buck
|
||||||
- run:
|
- run:
|
||||||
name: Install Buck
|
name: Install Buck
|
||||||
|
|
Загрузка…
Ссылка в новой задаче