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

11 Коммитов

Автор SHA1 Сообщение Дата
Wenbing Li c3145b8f52
add the decoder_prompt_id for whisper tokenizer (#775)
* add the decoder_prompt_id for whisper tokenizer

* temporarily disable android prebuilt

* disable the prebuilt for android

* disable the prebuilt for android 2

* Add a unit test

* correct test ids
2024-07-29 14:21:17 -07:00
Scott McKay 4842e9d6ae
Make CIs pass with Azure ops enabled by default. (#518)
* Make CIs pass with Azure ops enabled by default.
2023-08-12 17:45:59 +10: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
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
Wenbing Li f418557d85
Update mshost.yaml (#195)
* Update mshost.yaml

* fix the build error for Android.

* add the spm tokenizer in the selected ops list
2022-01-24 10:57:18 -08:00
Wenbing Li 9f3abe20fd
Prepare for 0.4.0 release (#151)
* new CI configuration

* Set up CI with Azure Pipelines

[skip ci]

* install numpy in cibuildwheel

* add pyproject.toml

* upgrade vmImage

* update the build python versions

* remove the pytest

* move the wheel build files

* enable sdist setup.py as well.

* use git command line

* Update wheels.yml for Azure Pipelines

* disable the pypy package for macos;

* fix the external repo code tag

* fix the ctest problem

* fix the unicode 8217.

* fix the locale base test
2021-09-25 00:40:12 -07:00
Wenbing Li ef4e07c5f4
Add a dockerfile and update for build script. (#131)
* Add a dockerfile and update for build script.

* update
2021-08-19 10:38:05 -07:00