Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7c6be3b
feat: Add Rust-based JNI for DeepFilterNet Android and integrate mobi…
Apr 11, 2025
3c96418
chore: Python scripts for model optimisation
Apr 16, 2025
0b3521a
Set up CI pipeline for iOS framework release
Jun 9, 2025
3989951
Update build_ios.yml
alessandrolimardo Jun 10, 2025
bbc08d4
Remove no more needed Package.swift file
Jun 10, 2025
a6c3c96
Update build_ios.yml
alessandrolimardo Jun 10, 2025
be3237b
Update build_ios.yml
alessandrolimardo Jun 11, 2025
c011079
Update build_ios.yml
alessandrolimardo Jun 11, 2025
c72e9c3
Update build_ios.yml
alessandrolimardo Jun 11, 2025
29b7b4c
Fix missing ios module export
Jun 11, 2025
d19cbb9
Update build_ios.yml
alessandrolimardo Jun 11, 2025
05f5425
Update ios build script for generating more complete info.plist files
Jun 16, 2025
73275d2
chore: enforce 16kb alignment for android built .so files
fede987 Jun 19, 2025
7538a6b
chore: add a step to build android workflow to check 16kb alignment o…
fede987 Jun 19, 2025
0771a53
Merge pull request #8 from KaleyraVideo/enforce_build_android_16_kb_a…
stefanobrusa Jun 19, 2025
71b91da
fix: update frame length from native call
Jun 20, 2025
dc60fc3
Merge pull request #9 from KaleyraVideo/develop
stefanobrusa Jun 20, 2025
2c72cc3
chore: add byte buffer capacity check
Jun 23, 2025
44cff24
chore: change to float return value for processFrame
Jun 23, 2025
a568a2d
chore: update returned values from processFrame
Jun 23, 2025
6f16852
Merge pull request #10 from KaleyraVideo/window_size_check
stefanobrusa Jun 23, 2025
f36c1bd
chore: update frame bytes
Jun 24, 2025
9c07f5a
Merge pull request #11 from KaleyraVideo/window_size_check
stefanobrusa Jun 24, 2025
ee6505a
Pass buffer size as a param in df_process_frame function and add a ch…
Jul 1, 2025
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
68 changes: 68 additions & 0 deletions .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build and upload Android artifacts

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-android:
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
RUST_LOG: info
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: ${{ matrix.target }}

- name: Install Cargo NDK
run: cargo install cargo-ndk

- name: Add Android targets
run: rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android

- name: Build Android libraries
run: cargo ndk -t armeabi-v7a -t arm64-v8a -t x86 -t x86_64 -o android-libs-build build --features android --release
working-directory: ./libDF

- name: Verify built .so files 16 kb alignment
run: |
LLVM_READELF_PATH=$(find $ANDROID_NDK_HOME -name llvm-readelf | head -n 1)
$LLVM_READELF_PATH -l android-libs-build/arm64-v8a/libdf.so | grep 'R E' | grep '0x4000$' || (echo "Alignment check failed for arm64-v8a" && exit 1)
working-directory: ./libDF

- name: Upload native Android libraries
uses: actions/upload-artifact@v4
with:
name: native-android-libraries
path: |
./libDF/android-libs-build/arm64-v8a/libdf.so
./libDF/android-libs-build/armeabi-v7a/libdf.so
./libDF/android-libs-build/x86/libdf.so
./libDF/android-libs-build/x86_64/libdf.so

- name: Copy and rename DeepFilter model
run: cp ./models/DeepFilterNet3_onnx_mobile.tar.gz ./models/deep-filter-mobile-model

- name: Upload DeepFilter mobile model
uses: actions/upload-artifact@v4
with:
name: deep-filter-mobile-model
path: ./models/deep-filter-mobile-model

- name: Clean up build artifacts
run: rm -rf ./libDF/android-libs-build

- name: Clean up temporary model file
run: rm -f ./models/deep-filter-mobile-model
47 changes: 47 additions & 0 deletions .github/workflows/build_ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build as iOS xcframework

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-ios:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Add iOS targets
run: |
rustup target add aarch64-apple-ios
rustup target add x86_64-apple-ios
rustup target add aarch64-apple-ios-sim

- name: Clean
working-directory: ./libDF
run: cargo clean

- name: Build iOS libraries
run: . ios_xcframework.sh
working-directory: ./libDF

- name: Zip XCFramework
working-directory: ./Binaries
run: |
zip -r DeepFilterNet.xcframework.zip DeepFilterNet.xcframework

- name: Upload framework
uses: actions/upload-artifact@v4
with:
name: Binaries
path: ./Binaries/DeepFilterNet.xcframework.zip
Loading