feat: add LiteRT-native backend (libLiteRt via Bazel) + rename litert→tflite #66
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: onnxruntime | |
| # Thin wrapper: derive version + release flag + matrix (engine-meta, from CMakePresets | |
| # vendor.anira), then hand off to the shared _build-backend.yml pipeline. onnxruntime ships | |
| # static (built from source, all platforms incl. iOS xcframework) AND shared (macOS built | |
| # from source; Linux/Windows/Android repackaged from upstream prebuilts). | |
| # | |
| # Triggers: | |
| # - push/PR touching onnxruntime sources or shared CI -> validate only (no release) | |
| # - tag v<anira-version> (e.g. v2.0.3) -> build at its VERSION, publish to that release | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'engines/onnxruntime/**' | |
| - 'scripts/**' | |
| - 'cmake/**' | |
| - 'CMakeLists.txt' | |
| - 'CMakePresets.json' | |
| - '.github/actions/**' | |
| - '.github/workflows/onnxruntime.yml' | |
| - '.github/workflows/_build-backend.yml' | |
| tags: | |
| - 'v[0-9]*' | |
| pull_request: | |
| paths: | |
| - 'engines/onnxruntime/**' | |
| - 'scripts/**' | |
| - 'cmake/**' | |
| - 'CMakeLists.txt' | |
| - 'CMakePresets.json' | |
| - '.github/actions/**' | |
| - '.github/workflows/onnxruntime.yml' | |
| - '.github/workflows/_build-backend.yml' | |
| concurrency: | |
| group: onnxruntime-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| meta: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.m.outputs.version }} | |
| release: ${{ steps.m.outputs.release }} | |
| release_tag: ${{ steps.m.outputs.release_tag }} | |
| matrix: ${{ steps.m.outputs.matrix }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - id: m | |
| uses: ./.github/actions/engine-meta | |
| with: | |
| preset_prefix: onnx | |
| version_file: engines/onnxruntime/VERSION | |
| build: | |
| needs: meta | |
| uses: ./.github/workflows/_build-backend.yml | |
| with: | |
| engine: onnxruntime | |
| libname: onnxruntime | |
| version: ${{ needs.meta.outputs.version }} | |
| release: ${{ needs.meta.outputs.release == 'true' }} | |
| release_tag: ${{ needs.meta.outputs.release_tag }} | |
| matrix: ${{ needs.meta.outputs.matrix }} | |
| macos_universal_kinds: '["static","shared"]' | |
| android_bundle_kinds: '["static"]' | |
| has_ios: true | |
| secrets: inherit |