Platform support
Troupekit is meant to run wherever your program runs, so CI builds the whole workspace for six targets on every pull request. You need Rust 1.89 or newer for troupekit, troupekit-kit, troupekit-store-sqlite, troupekit-cli and the binding crates, and Rust 1.85 or newer for the other crates, all on edition 2021.
The targets, and what CI checks on each beyond the build:
| Target | Runner | Also checked |
|---|---|---|
x86_64-unknown-linux-gnu | ubuntu-latest | tests of the changed crates |
aarch64-unknown-linux-gnu | ubuntu-24.04-arm | |
aarch64-linux-android | ubuntu-latest, cross build with the NDK | a build without the TLS stack; a SQLCipher build |
x86_64-pc-windows-msvc | windows-latest | the SQLite store smoke tests |
| macOS | macos-latest | tests of the changed crates |
aarch64-apple-ios | macos-latest, cross build | workspace without troupekit-cli; a build without the TLS stack; a SQLCipher build |
A build "without the TLS stack" is cargo build -p troupekit --no-default-features --features sqlite. It leaves out reqwest, for an app that brings its own HTTP transport.
Feature-specific jobs
Two features get their own Linux jobs, because they pull in C code. The llama job fetches llama.cpp and an embedding GGUF and runs the pooled-embedding test of troupekit-local. The sqlcipher and sqlcipher-system jobs run the SQLite store tests with each feature on.
Binding jobs
The bindings have their own jobs. The Swift contract tests run on macOS. The Kotlin contract tests run on the JVM on Linux and macOS, and again on an Android emulator. A Python wheel is built and tested with pytest for macOS arm64, Linux x86_64 and aarch64, and Windows x86_64.
Note
CI builds for iOS and Android, and since 0.4 an app can call troupekit from Swift or Kotlin, and a script from Python. The bindings are built from source; no SPM, Maven or PyPI package is published yet.