-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (63 loc) · 1.9 KB
/
Copy pathtflite.yml
File metadata and controls
68 lines (63 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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