Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

env:
CARGO_TERM_COLOR: always
ANDROID_NDK_VERSION: "27.0.12077973"

jobs:
check:
Expand Down Expand Up @@ -46,3 +47,28 @@ jobs:
run: cargo run --locked -- --demo --json
- name: Run fixture CLI
run: cargo run --locked -- --mock tests/fixtures/me.json

android-lib-check:
name: Android library check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Linux GUI dependencies
run: |
sudo apt-get update
sudo apt-get install -y libfontconfig1-dev libxkbcommon-dev
- uses: android-actions/setup-android@v3
- name: Install Android SDK packages
run: |
sdkmanager \
"platforms;android-35" \
"ndk;${ANDROID_NDK_VERSION}"
echo "ANDROID_NDK_HOME=${ANDROID_HOME}/ndk/${ANDROID_NDK_VERSION}" >> "$GITHUB_ENV"
echo "ANDROID_NDK_ROOT=${ANDROID_HOME}/ndk/${ANDROID_NDK_VERSION}" >> "$GITHUB_ENV"
echo "CC_aarch64_linux_android=${ANDROID_HOME}/ndk/${ANDROID_NDK_VERSION}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android35-clang" >> "$GITHUB_ENV"
echo "AR_aarch64_linux_android=${ANDROID_HOME}/ndk/${ANDROID_NDK_VERSION}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar" >> "$GITHUB_ENV"
echo "CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=${ANDROID_HOME}/ndk/${ANDROID_NDK_VERSION}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android35-clang" >> "$GITHUB_ENV"
- name: Install Rust Android target
run: rustup target add aarch64-linux-android
- name: Check Android-gated library
run: cargo check --locked --features android-gui --target aarch64-linux-android --lib
13 changes: 13 additions & 0 deletions docs/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ work.
This is intentionally not a GitHub Release. Release tags and production
release assets stay under the existing release workflow.

## CI Android library check

The main CI workflow installs the `aarch64-linux-android` Rust target and runs:

```bash
cargo check --locked --features android-gui --target aarch64-linux-android --lib
```

This is a fast compile guard for Android-gated Rust code. It does not install
or run the APK, does not require API keys, and does not replace the manual APK
artifact/device test above. Use the `Android Test APK` workflow when a change
needs manifest, packaging, or real-device validation.

## Agent burn alerts

The Android build declares `INTERNET`, `VIBRATE`, and `POST_NOTIFICATIONS`.
Expand Down
Loading