Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround the android tools upgrade to get CI to work again #779

Merged
merged 1 commit into from
Aug 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: osx-ubuntu-build-android
name: osx-build-android

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ Pre-requisites
- git
- the most recent version of android studio
- **NOTE**: although Catalina has a `/usr/bin/java`, trying to run it gives the error `No Java runtime present, requesting install.`. Installed [OpenJDK 1.8 using AdoptOpenJDK](https://adoptopenjdk.net/releases.html) to be consistent with the CI.
- NOTE: The setup script below will modify this install to workaround
https://github.com/actions/virtual-environments/issues/3757

Important
---
Expand Down
5 changes: 5 additions & 0 deletions setup/setup_android_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ ANDROID_BUILD_TOOLS_VERSION=27.0.3
MIN_SDK_VERSION=21
TARGET_SDK_VERSION=28

echo "Uninstalling build tools > 30"
echo "As a temporary workaround until we upgrade to cordova 10"
SDKMANAGER=$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager
echo y | $SDKMANAGER --uninstall "build-tools;31.0.0"

# Setup the development environment
source setup/setup_shared.sh

Expand Down