fix(android): remove pin to specific NDK version (#246)
* fix(android): remove pin to specific NDK version See https://github.com/ooni/probe-engine/issues/1179 * fix(android): see if we can trigger workflow with this rule
This commit is contained in:
parent
58788d3a83
commit
0477903187
5
.github/workflows/android.yml
vendored
5
.github/workflows/android.yml
vendored
|
@ -3,7 +3,8 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- mobile-staging
|
||||
- 'release/**'
|
||||
- "release/**"
|
||||
- "**android**"
|
||||
jobs:
|
||||
test:
|
||||
runs-on: macos-latest
|
||||
|
@ -14,7 +15,7 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- run: brew install --cask android-sdk
|
||||
- run: echo y | sdkmanager --install "platforms;android-29"
|
||||
- run: echo y | sdkmanager --install "ndk;21.3.6528147"
|
||||
- run: echo y | sdkmanager --install "ndk-bundle"
|
||||
- run: ./build-android.bash
|
||||
env:
|
||||
ANDROID_HOME: /usr/local/Caskroom/android-sdk/4333796
|
||||
|
|
|
@ -11,7 +11,7 @@ if [ -z "$ANDROID_HOME" -o "$1" = "--help" ]; then
|
|||
echo ""
|
||||
echo "Then make sure you install the required packages:"
|
||||
echo ""
|
||||
echo "sdkmanager --install 'build-tools;29.0.3' 'ndk;21.3.6528147'"
|
||||
echo "sdkmanager --install 'build-tools;29.0.3' 'ndk-bundle'"
|
||||
echo ""
|
||||
echo "or, if you already installed, that you're up to date:"
|
||||
echo ""
|
||||
|
@ -22,28 +22,6 @@ if [ -z "$ANDROID_HOME" -o "$1" = "--help" ]; then
|
|||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
if [ -d $ANDROID_HOME/ndk-bundle ]; then
|
||||
echo ""
|
||||
echo "FATAL: currently we need 'ndk;21.3.6528147' instead of ndk-bundle"
|
||||
echo ""
|
||||
echo "See https://github.com/ooni/probe-engine/issues/1179."
|
||||
echo ""
|
||||
echo "To fix: sdkmanager --uninstall ndk-bundle"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/21.3.6528147
|
||||
if [ ! -d $ANDROID_NDK_HOME ]; then
|
||||
echo ""
|
||||
echo "FATAL: currently we need 'ndk;21.3.6528147'"
|
||||
echo ""
|
||||
echo "See https://github.com/ooni/probe-engine/issues/1179."
|
||||
echo ""
|
||||
echo "To fix: sdkmanager --install 'ndk;21.3.6528147'"
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
topdir=$(cd $(dirname $0) && pwd -P)
|
||||
set -x
|
||||
export PATH=$(go env GOPATH)/bin:$PATH
|
||||
|
|
Loading…
Reference in New Issue
Block a user