Skip to content

Commit

Permalink
Update NDK to 26.0.10792818 (#17852)
Browse files Browse the repository at this point in the history
### Description
Update NDK to 26.0.10792818 which is included in every macOS build
machine so that we do not need to download a different version every
time in every build.

### Motivation and Context
Downloading NDK on-the-fly is a main contributor of Android related
build failures.
  • Loading branch information
snnn authored Oct 12, 2023
1 parent 163218d commit 3f3ece4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion onnxruntime/test/onnx/TestCase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void LoopDataFile(int test_data_pb_fd, bool is_input, const TestModelInfo& model
f.SetCloseOnDelete(true);
google::protobuf::io::CodedInputStream coded_input(&f);
bool clean_eof = false;
int item_id = 1;
[[maybe_unused]] int item_id = 1;
for (proto::TraditionalMLData data;
ParseDelimitedFromCodedStream(&data, &coded_input, &clean_eof);
++item_id, data.Clear()) {
Expand Down
2 changes: 1 addition & 1 deletion tools/android_custom_build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ WORKDIR /workspace

# install Android SDK and tools
ENV ANDROID_HOME=~/android-sdk
ENV NDK_VERSION=25.0.8775105
ENV NDK_VERSION=26.0.10792818
ENV ANDROID_NDK_HOME=${ANDROID_HOME}/ndk/${NDK_VERSION}

RUN aria2c -q -d /tmp -o cmdline-tools.zip \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
parameters:
- name: AndroidNdkVersion
type: string
default: "25.0.8775105" # LTS version
default: "26.0.10792818" # LTS version

steps:
- bash: |
Expand Down

0 comments on commit 3f3ece4

Please sign in to comment.