Files
cfal 33bbea93e4 Refresh dependencies and build tooling (#235)
Refresh eligible Rust dependencies and build tooling, including notify 8.2.1, Web PKI roots 1.0.11 and the ctutils constant-time fix. Handle macOS watcher restart failures, update Unicode-domain data, and require Rust 1.99.1 while preserving maintained fork pins and protocol baselines. Retain parking_lot 0.12 and the upstream nix pin for Android/iOS compatibility.
2026-10-27 10:43:07 +08:00

79 lines
2.0 KiB
YAML

name: Check Mobile Builds
on:
push:
branches: [ master ]
tags: [ 'v*' ]
pull_request:
branches: [ master ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
ios:
name: Build iOS native libraries
runs-on: macos-latest
env:
IPHONEOS_DEPLOYMENT_TARGET: '16.0'
steps:
- uses: actions/checkout@v7
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-ios,aarch64-apple-ios-sim
- name: Cache Rust build
uses: Swatinem/rust-cache@v2
with:
key: ios
- name: Build native libraries
run: |
cargo build --release --lib --locked --target aarch64-apple-ios
cargo build --release --lib --locked --target aarch64-apple-ios-sim
test -s target/aarch64-apple-ios/release/libshoes.a
test -s target/aarch64-apple-ios-sim/release/libshoes.a
android:
name: Build Android native libraries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-linux-android,armv7-linux-androideabi
- name: Install native build tools
uses: taiki-e/install-action@v2
with:
tool: cbindgen@0.29.4,cargo-ndk@4.1.2
- name: Cache Rust build
uses: Swatinem/rust-cache@v2
with:
key: android
- name: Set NDK path
run: echo "ANDROID_NDK_HOME=$ANDROID_NDK_LATEST_HOME" >> "$GITHUB_ENV"
- name: Build JNI native libraries
run: |
cargo ndk \
-t arm64-v8a \
-t armeabi-v7a \
-P 21 \
-- build --release --lib --locked
test -s target/aarch64-linux-android/release/libshoes.so
test -s target/armv7-linux-androideabi/release/libshoes.so
# cbindgen can update Cargo.lock, so the locked builds must run first.
- name: Verify C header
run: cbindgen --verify --config cbindgen.toml --output include/shoes.h