mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-20 19:12:24 +00:00
Fix android CI failure after gradle updated to 7.0 (#7364)
* Fix android ci failure after gradle updated to 7.0 * minor update
This commit is contained in:
parent
009f342caf
commit
96cdc65d57
2 changed files with 22 additions and 0 deletions
19
tools/ci_build/github/android/setup_gradle_wrapper.sh
Normal file
19
tools/ci_build/github/android/setup_gradle_wrapper.sh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script will setup gradlew to use gradle version 6.8.3 for Android CI,
|
||||
# since the macOS pipeline is using gradle 7.0 which will fail the java build
|
||||
# See, https://github.com/actions/virtual-environments/issues/3195
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "One command line argument, the ORT root directory, is expected"
|
||||
fi
|
||||
|
||||
ORT_ROOT=$1
|
||||
|
||||
pushd ${ORT_ROOT}/java
|
||||
gradle wrapper --gradle-version 6.8.3 --no-daemon --no-watch-fs
|
||||
./gradlew --version
|
||||
popd
|
||||
|
|
@ -15,6 +15,9 @@ jobs:
|
|||
- script: brew install coreutils ninja
|
||||
displayName: Install coreutils and ninja
|
||||
|
||||
- script: /bin/bash tools/ci_build/github/android/setup_gradle_wrapper.sh $(pwd)
|
||||
displayName: Setup gradle wrapper to use gradle 6.8.3
|
||||
|
||||
- script: |
|
||||
python3 tools/python/run_android_emulator.py \
|
||||
--android-sdk-root ${ANDROID_SDK_ROOT} \
|
||||
|
|
|
|||
Loading…
Reference in a new issue