Skip to content

Fix CI workflow and add TFLite checksums#202

Merged
DenisovAV merged 7 commits intomainfrom
feature/desktop-embeddings
Mar 25, 2026
Merged

Fix CI workflow and add TFLite checksums#202
DenisovAV merged 7 commits intomainfrom
feature/desktop-embeddings

Conversation

@DenisovAV
Copy link
Copy Markdown
Owner

Summary

  • Fix build-tflite.yml CI workflow that failed after merge of Add desktop embeddings via TFLite C FFI #201
  • Replace deprecated macos-13 runner with macos-15, remove paid macos-15-large (x86_64)
  • Replace broken npm install -g @bazel/bazelisk with bazel-contrib/setup-bazel@0.19.0
  • Pin windows-2022 for TF 2.19.0 compatibility
  • Add fail-fast: false so one failing job doesn't cancel others
  • Add SHA256 checksums for all TFLite C libraries built from TF 2.19.0

- Add nullptr checks for TFLite options, input/output tensors
- Validate tensor dimensions > 0 in fromFile()
- Guard empty JAR_CHECKSUM on Linux (skip verification)
- Add TFLite checksum placeholder + verification in all build scripts
- Detect active embedding model changes in createEmbeddingModel()
- Use try-finally in DesktopEmbeddingModel.close()
- Replace deprecated macos-13 with macos-15-large (x86_64)
- Update macos-14 to macos-15 (ARM64)
- Replace npm/choco bazelisk install with bazel-contrib/setup-bazel@0.19.0
- Pin windows-2022 for TF 2.19.0 compatibility
macOS x86_64 runner (macos-15-large) requires paid plan.
Apple Silicon dominates for on-device AI use cases.
Checksums from TF 2.19.0 build artifacts (v0.12.7 release):
- darwin_arm64: 465257ce...
- linux_amd64: 2a26d117...
- linux_arm64: 1a3d3984...
- windows_amd64: 44fb8b28...
- Add missing Linux JAR_CHECKSUM (same JAR as macOS/Windows)
- Fix TfLiteInterpreter leak when tokenizer loading fails
- Fix stale embedding singleton when active model becomes null
- Revert JAR_VERSION to 0.12.6 (JAR not in v0.12.7 release)
Resolve conflicts keeping our fixes: CI runners, checksums,
JAR_VERSION=0.12.6, interpreter leak fix, stale singleton fix.
@DenisovAV DenisovAV merged commit dbd746d into main Mar 25, 2026
1 check passed
@DenisovAV DenisovAV deleted the feature/desktop-embeddings branch March 25, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant