Граф коммитов

16 Коммитов

Автор SHA1 Сообщение Дата
Wenbing Li c9c11b4846
Fix the windows API missing issue and Linux shared library size issue for Java packaging. (#774)
* Fix the java packaging issues

* add the jar path example for Linux build with a default configuration
2024-07-29 16:03:58 -07:00
Scott McKay a1285d8f36
Fix CG warnings. (#731)
- update protobuf version being used by sentencepiece and the java tests
- ignore unused language bindings from protobuf and triton
- specify the CG config file with ignored directories where required

Fix cgmanifest.json
- 'git' entries require a commit hash not version
- use 'other' for opencv third party code that is included directly in the opencv repo
  - the path isn't a valid repositoryUrl value to be provided as a 'git' entry
- update version numbers/commit hashes to match the latest code

Co-authored-by: Sayan Shaw <52221015+sayanshaw24@users.noreply.github.com>
2024-05-29 07:47:55 +10:00
Adam Pocock fcf28fe83a
Setting Java module name to com.microsoft.onnxruntime.extensions. (#730) 2024-05-28 19:58:39 +10:00
Edward Chen 2aeca72714
Fix Android CI build issues (#587)
* Update JDK version to 17 in ci.yml

* Update com.diffplug.spotless to 6.22.0.

* Update to JDK 17 in packaging pipelines.

* Fix pool name.
2023-10-30 17:40:48 -07:00
Wenbing Li 01d3905801
fix the android packaging issue (#497) 2023-07-24 17:18:49 -07:00
Wenbing Li 62d8598b6b
Update whisper model test cases and e2e example (#496)
* Update whisper model test cases and e2e example

* fix unit test on windows

* more refinement

* utest fix
2023-07-21 15:27:02 -07:00
Wenbing Li 66be6bb640
Upgrade gradle wrapper to unblock android CI (#491)
* upgrade gradle wrapper to unblock android CI

* Revert "upgrade gradle wrapper to unblock android CI"

This reverts commit 4df4f253aa.

* set timeout of gradlew

* "re-update it"

* Update gradle-wrapper.properties

* using gradle 8.0.1

* reformat the files

* fix the build.gradle issue

* one more fixing

* delay gradle starts

* rerun the pipeline
2023-07-17 11:15:46 -07:00
Edward Chen a4b8dec288
Gradle wrapper security updates (#381)
* Add gradle-wrapper.jar checksum validation workflow.

* Add gradle wrapper distribution checksum values.
2023-03-16 11:06:00 -07:00
Edward Chen 63fe165ee8
Android package build updates (#344)
- Generate AAR with associated artifacts (javadoc.jar, sources.jar, pom).
- Fix JAR/AAR package descriptions.
- Remove `gradle -b build-android.gradle` invocation from CMake. This creates the AAR and it is not necessary to run it for each Android ABI build.
- Support building on Windows.
2023-01-13 14:06:00 -08:00
Scott McKay e3663fb110
Add build.py to make it easier for developers to build different variants (#318)
* Add python based build infrastructure to simplify developer builds for various platforms. Majority was copied from the ORT build script so usage is consistent with that.

Left the existing build.bat/build.sh but ideally the CI can be updated to use the new infrastructure so things are more consistent.

Updated gradle to 7.5.1 and Android gradle tools to 7.3.0.

Validated Windows and cross-compiling Android on Windows including builds with explicitly selected ops.
WASM and iOS builds aren't tested yet and might need minor tweaks.

* Update build.py to require Python 3.7, remove git submodule sync, reorder options.
* Use 'cmake -E remove' to remove file.
* Enable specifying the ORT version to fetch
* Add ability to enable Java bindings.


Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
Co-authored-by: edgchen1 <18449977+edgchen1@users.noreply.github.com>
2023-01-02 14:55:31 +10:00
Rachel Guo e0d48e255f
Add initial android packaging pipeline (#332)
* initial android packaging

* Update android_packaging.yml for Azure Pipelines

* update

* fix name

* fix

* remove popd

* move to .pipelines

* move app center running command

* update version suffix and package name

* minor update

* minor update

* update pom files

* add package op config and update

* update build variable format

* update

* enable selected op list

* update

* update selected ops

* use python 3.9 version

* modify enable option argument

* update isreleasebuild

* update isreleasebuild

* minor update about versions

* rm version.txt accidentally checkedin

* address pr comments

* update

* update

* debug trial run

* update build android gradle file version

* update get version number helper

* minor fix

* minor fix
2022-12-28 15:56:19 -08:00
Edward Chen 0169129b19
Add version.txt and derive CMake version variables from it. (#333) 2022-12-16 10:14:28 -08:00
Rachel Guo 7b7e2a75e7
Add app center test to android ci (#329)
* wip

* integrate app center test command to CI

* add app center cli install

* update ci test

* update based on new app

* minor update yaml file

* add new line at the end of file

* update app center token and comments
2022-12-15 18:52:42 -08:00
Wenbing Li 187411d5c9
Add an android test app for extensions AAR package in CI pipeline (#308)
* an android test app for extensions AAR package

* add the pipeline

* fxing the Android CI pipeline

* fix the build issus on macOS

* more fixings

* more fixings

* switch to jdk 11

* gradlew path issue

* update the command lines

* split the test task

* better name
2022-11-08 10:19:12 -08:00
Wenbing Li 379cf02d5c
Build multiple Android ABIs into one AAR package. (#302)
* support multiple ABIs in one AAR package.

* refine ndk version implementation

* fix ndk version issue

* comments

* typo
2022-10-11 14:53:22 -07:00
Wenbing Li 08659eae90
Initial Java API for the JAR package. (#292)
* more C++ code fixing and polish for release

* fixing for android build

* build flags for android release

* add missing exporting function

* imint

* first versoin

* more C++ code fixing and polish for release (#275)

* more C++ code fixing and polish for release

* fixing for android build

* build flags for android release

* add missing exporting function

* support build_id on Python package building (#281)

* support buildid in package building

* undo the change on build.sh

* build.sh issue on macos

* Add `$schema` to `cgmanifest.json` (#284)

Co-authored-by: Jamie Magee <jamie.magee@microsoft.com>

* test package with a simple java app

* demo app

* some fixing for windows platform

* refine the example app

* fix the missing symobls issue for Linux build

* fix the package package build issue

* typo

* a missing change

* fix PythonOp

* fix Android test issue

* one more Android change

* replace build flags in ci pipeline

* android AAR package build

* refine the code for android package

Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Jamie Magee <jamie.magee@microsoft.com>
2022-10-04 16:22:28 -07:00