chore(deps): upgrade dependencies and refresh pricing data #179
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: CI Mobile | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "crates/**" | |
| - "packages/dart/**" | |
| - "packages/swift/**" | |
| - "packages/kotlin-android/**" | |
| - ".github/workflows/ci-mobile.yaml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "crates/**" | |
| - "packages/dart/**" | |
| - "packages/swift/**" | |
| - "packages/kotlin-android/**" | |
| - ".github/workflows/ci-mobile.yaml" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-mobile-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| CARGO_INCREMENTAL: 0 | |
| CARGO_PROFILE_DEV_DEBUG: 0 | |
| RUST_BACKTRACE: short | |
| permissions: | |
| contents: read | |
| jobs: | |
| android-check: | |
| name: Android cargo check (${{ matrix.abi }}) | |
| if: github.repository == 'xberg-io/liter-llm' && github.actor != 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| abi: [arm64-v8a, x86_64] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: xberg-io/actions/setup-rust@v1 | |
| with: | |
| cache-key-prefix: ci-mobile-android-${{ matrix.abi }} | |
| - uses: xberg-io/actions/setup-android-ndk@v1 | |
| - name: cargo ndk check liter-llm-dart | |
| run: cargo ndk --target ${{ matrix.abi }} --platform 21 -- check -p liter-llm-dart | |
| - name: cargo ndk check liter-llm-ffi | |
| run: cargo ndk --target ${{ matrix.abi }} --platform 21 -- check -p liter-llm-ffi | |
| ios-check: | |
| name: iOS cargo check (${{ matrix.target }}) | |
| if: github.repository == 'xberg-io/liter-llm' && github.actor != 'dependabot[bot]' | |
| runs-on: macos-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: [aarch64-apple-ios, aarch64-apple-ios-sim] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: xberg-io/actions/setup-rust@v1 | |
| with: | |
| target: ${{ matrix.target }} | |
| cache-key-prefix: ci-mobile-ios-${{ matrix.target }} | |
| - name: cargo check liter-llm-dart | |
| run: cargo check -p liter-llm-dart --target ${{ matrix.target }} | |
| - name: cargo check liter-llm-swift | |
| run: cargo check -p liter-llm-swift --target ${{ matrix.target }} | |
| xcframework-build: | |
| name: Build iOS XCFramework | |
| if: github.repository == 'xberg-io/liter-llm' && github.actor != 'dependabot[bot]' | |
| runs-on: macos-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: xberg-io/actions/setup-rust@v1 | |
| - uses: xberg-io/actions/build-ios-xcframework@v1 | |
| with: | |
| crate-name: liter-llm-swift | |
| build-profile: release | |
| kotlin-android-build: | |
| name: Build Kotlin Android (${{ matrix.abi }}) | |
| if: github.repository == 'xberg-io/liter-llm' && github.actor != 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| abi: [arm64-v8a, x86_64] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: xberg-io/actions/setup-rust@v1 | |
| with: | |
| cache-key-prefix: ci-mobile-android-${{ matrix.abi }} | |
| - uses: xberg-io/actions/setup-android-ndk@v1 | |
| - name: Build liter-llm-jni for ${{ matrix.abi }} | |
| run: cargo ndk --target ${{ matrix.abi }} --platform 21 -- build -p liter-llm-jni --release | |
| - name: Stage jniLibs | |
| shell: bash | |
| run: | | |
| mkdir -p packages/kotlin-android/src/main/jniLibs/${{ matrix.abi }} | |
| case "${{ matrix.abi }}" in | |
| arm64-v8a) RUST_TGT=aarch64-linux-android ;; | |
| x86_64) RUST_TGT=x86_64-linux-android ;; | |
| esac | |
| cp "target/${RUST_TGT}/release/libliterllm_jni.so" \ | |
| "packages/kotlin-android/src/main/jniLibs/${{ matrix.abi }}/" | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| - uses: gradle/actions/setup-gradle@v6 | |
| with: | |
| # Provision the version declared in the kotlin-android wrapper so the | |
| # bare `gradle` invocation matches the alef-generated wrapper. AGP | |
| # (com.android.library) 9.2.0 requires Gradle >= 9.4.1; a hardcoded | |
| # 8.13 pin silently overrode the 9.6.0 wrapper and broke the build. | |
| gradle-version: "wrapper" | |
| - name: Assemble Android library aar | |
| working-directory: packages/kotlin-android | |
| run: gradle assembleRelease |