Skip to content

feat: adds missing installations when group is synced (#492) #91

feat: adds missing installations when group is synced (#492)

feat: adds missing installations when group is synced (#492) #91

name: test bindings_flutter
on:
push:
branches:
- main
pull_request:
env:
LD_LIBRARY_PATH: ${{ github.workspace }}/bindings_flutter
jobs:
build_android:
runs-on: warp-macos-13-arm64-6x
defaults:
run:
working-directory: ./bindings_flutter
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-linux-android,armv7-linux-androideabi,x86_64-linux-android,i686-linux-android
- uses: Swatinem/rust-cache@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.8'
channel: 'stable'
- run: flutter pub get
- run: cargo install cargo-expand
- run: cargo install flutter_rust_bridge_codegen --version 2.0.0-dev.22
- run: flutter_rust_bridge_codegen generate
- run: scripts/build-android.sh
- uses: actions/upload-artifact@v3
with:
name: xmtp_bindings_flutter.jniLibs.tar.gz
path: bindings_flutter/platform-build/xmtp_bindings_flutter.jniLibs.tar.gz
retention-days: 1
build_linux:
runs-on: warp-ubuntu-latest-x64-4x
defaults:
run:
working-directory: ./bindings_flutter
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
# targets: aarch64-unknown-linux-gnu,x86_64-unknown-linux-gnu
targets: x86_64-unknown-linux-gnu
- uses: Swatinem/rust-cache@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.8'
channel: 'stable'
- uses: goto-bus-stop/setup-zig@v2
- run: flutter pub get
- run: cargo install cargo-expand
- run: cargo install flutter_rust_bridge_codegen --version 2.0.0-dev.22
- run: flutter_rust_bridge_codegen generate
- run: scripts/build-linux.sh
- run: cp target/x86_64-unknown-linux-gnu/release/libxmtp_bindings_flutter.so ./libxmtp_bindings_flutter.so
- run: dev/up
working-directory: ./
- run: flutter test
- uses: actions/upload-artifact@v3
with:
name: xmtp_bindings_flutter.linux.tar.gz
path: bindings_flutter/platform-build/xmtp_bindings_flutter.linux.tar.gz
retention-days: 1
build_apple:
runs-on: warp-macos-13-arm64-6x
defaults:
run:
working-directory: ./bindings_flutter
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim,aarch64-apple-darwin,x86_64-apple-darwin
- uses: Swatinem/rust-cache@v2
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.8'
channel: 'stable'
- run: flutter pub get
- run: cargo install cargo-expand
- run: cargo install flutter_rust_bridge_codegen --version 2.0.0-dev.22
- run: flutter_rust_bridge_codegen generate
- run: scripts/build-apple.sh
- uses: actions/upload-artifact@v3
with:
name: xmtp_bindings_flutter.xcframework.zip
path: bindings_flutter/platform-build/xmtp_bindings_flutter.xcframework.zip
retention-days: 1
- uses: actions/upload-artifact@v3
with:
name: libxmtp_bindings_flutter.dylib
path: bindings_flutter/platform-build/libxmtp_bindings_flutter.dylib
retention-days: 1