feat(ci): Developer ID codesign macOS shared dylibs in release pipeline #53
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: tflite | |
| # Thin wrapper: derive version + release flag + matrix (engine-meta, from CMakePresets | |
| # vendor.anira), then hand off to the shared _build-backend.yml pipeline. | |
| # | |
| # Triggers: | |
| # - push/PR touching tflite sources or shared CI -> validate only (no release) | |
| # - tag v<anira-version> (e.g. v2.0.3) -> build TFLite at its VERSION, publish to that release | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'engines/tflite/**' | |
| - 'scripts/**' | |
| - 'cmake/**' | |
| - 'CMakeLists.txt' | |
| - 'CMakePresets.json' | |
| - '.github/actions/**' | |
| - '.github/workflows/tflite.yml' | |
| - '.github/workflows/_build-backend.yml' | |
| tags: | |
| - 'v[0-9]*' | |
| pull_request: | |
| paths: | |
| - 'engines/tflite/**' | |
| - 'scripts/**' | |
| - 'cmake/**' | |
| - 'CMakeLists.txt' | |
| - 'CMakePresets.json' | |
| - '.github/actions/**' | |
| - '.github/workflows/tflite.yml' | |
| - '.github/workflows/_build-backend.yml' | |
| concurrency: | |
| group: tflite-${{ 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: tflite | |
| version_file: engines/tflite/VERSION | |
| build: | |
| needs: meta | |
| uses: ./.github/workflows/_build-backend.yml | |
| with: | |
| engine: tflite | |
| libname: tensorflowlite_c | |
| 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","shared"]' | |
| has_ios: true | |
| secrets: inherit |