Skip to content

feat: add TLS configuration support to Java SDK #223

feat: add TLS configuration support to Java SDK

feat: add TLS configuration support to Java SDK #223

name: Package FFI Engine (Android)
on:
pull_request:
branches: [main]
paths:
- "flipt-engine-ffi/**"
- "flipt-evaluation/**"
push:
tags: ["flipt-engine-ffi-v**"]
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
platform:
- name: Android-aarch64
target: aarch64-linux-android
arch: arm64-v8a
- name: Android-x86_64
target: x86_64-linux-android
arch: x86_64
runs-on: ubuntu-22.04
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
rustup update nightly
rustup default nightly
rustup target add ${{ matrix.platform.target }}
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: android-${{ matrix.platform.target}}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install cargo-ndk
run: cargo install --force cargo-ndk
- name: Build
run: cargo ndk --platform 30 --target ${{ matrix.platform.arch }} build --release
env:
RUSTFLAGS: "-Zlocation-detail=none -Zfmt-debug=none"
- name: Package
run: |
tar -czvf flipt-engine-ffi-${{ matrix.platform.name }}.tar.gz \
target/${{ matrix.platform.target }}/release/libfliptengine.* \
|| true
- name: Upload Artifact (Pull Request)
uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request'
with:
name: flipt-engine-ffi-${{ matrix.platform.name }}.tar.gz
path: flipt-engine-ffi-${{ matrix.platform.name }}.tar.gz
retention-days: 1
- name: Upload Release Assets (Tag)
uses: softprops/[email protected]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/flipt-engine-ffi-v')
with:
tag_name: ${{ github.ref_name }}
files: flipt-engine-ffi-${{ matrix.platform.name }}.tar.gz