Skip to content

Commit

Permalink
Remove 32bit support (#575)
Browse files Browse the repository at this point in the history
* Remove i686 bindings

* Remove armv7 bindings
  • Loading branch information
ok300 authored Nov 20, 2024
1 parent bd38a99 commit 14d5bc9
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 62 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/build-bindings-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:
matrix:
target: [
aarch64-linux-android,
armv7-linux-androideabi,
i686-linux-android,
x86_64-linux-android,
]
steps:
Expand Down Expand Up @@ -70,11 +68,6 @@ jobs:
cp lib/target/${{ matrix.target }}/release/libbreez_sdk_liquid_bindings.so dist
- name: Copy libc++_shared
if: ${{ matrix.target == 'armv7-linux-androideabi'}}
run: cp $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/libc++_shared.so dist

- name: Copy libc++_shared
if: ${{ matrix.target != 'armv7-linux-androideabi'}}
run: cp $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/${{ matrix.target }}/libc++_shared.so dist

- name: Archive release
Expand All @@ -92,16 +85,6 @@ jobs:
with:
name: bindings-aarch64-linux-android
path: arm64-v8a

- uses: actions/download-artifact@v4
with:
name: bindings-armv7-linux-androideabi
path: armeabi-v7a

- uses: actions/download-artifact@v4
with:
name: bindings-i686-linux-android
path: x86

- uses: actions/download-artifact@v4
with:
Expand All @@ -122,8 +105,6 @@ jobs:
matrix:
target: [
aarch64-linux-android,
armv7-linux-androideabi,
i686-linux-android,
x86_64-linux-android,
]
steps:
Expand All @@ -147,16 +128,6 @@ jobs:
with:
name: bindings-aarch64-linux-android
path: arm64-v8a

- uses: actions/download-artifact@v4
with:
name: bindings-armv7-linux-androideabi
path: armeabi-v7a

- uses: actions/download-artifact@v4
with:
name: bindings-i686-linux-android
path: x86

- uses: actions/download-artifact@v4
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/build-bindings-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
matrix:
target: [
x86_64-pc-windows-msvc,
i686-pc-windows-msvc,
]
steps:
- name: checkout
Expand Down Expand Up @@ -74,7 +73,6 @@ jobs:
matrix:
target: [
x86_64-pc-windows-msvc,
i686-pc-windows-msvc,
]
steps:
- name: Build dummy windows ${{ matrix.target }}
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/publish-csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ jobs:
name: bindings-x86_64-pc-windows-msvc
path: lib/bindings/langs/csharp/src/runtimes/win-x64/native

- uses: actions/download-artifact@v4
with:
name: bindings-i686-pc-windows-msvc
path: lib/bindings/langs/csharp/src/runtimes/win-x86/native

- name: Update package version
if: ${{ inputs.package-version }}
working-directory: lib/bindings/langs/csharp/src
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/publish-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ jobs:
name: bindings-golang
path: breez_sdk_liquid

- uses: actions/download-artifact@v4
with:
name: bindings-i686-linux-android
path: breez_sdk_liquid/lib/android-386

- uses: actions/download-artifact@v4
with:
name: bindings-armv7-linux-androideabi
path: breez_sdk_liquid/lib/android-aarch

- uses: actions/download-artifact@v4
with:
name: bindings-aarch64-linux-android
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/publish-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,6 @@ jobs:
name: bindings-x86_64-pc-windows-msvc
path: lib/bindings/langs/python/src/breez_sdk_liquid

- uses: actions/download-artifact@v4
if: matrix.arch == 'win32'
with:
name: bindings-i686-pc-windows-msvc
path: lib/bindings/langs/python/src/breez_sdk_liquid

- uses: actions/download-artifact@v4
with:
name: bindings-python
Expand Down
12 changes: 2 additions & 10 deletions lib/bindings/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ init:
rustup target add aarch64-apple-ios x86_64-apple-ios
rustup target add aarch64-apple-darwin x86_64-apple-darwin
rustup target add aarch64-apple-ios-sim
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
rustup target add aarch64-linux-android x86_64-linux-android
rustup target add aarch64-unknown-linux-gnu x86_64-unknown-linux-gnu
@if [ $$(uname) == "Darwin" ] ; then cargo install cargo-lipo ; fi
cargo install cbindgen
Expand All @@ -36,21 +36,13 @@ all: bindings-swift bindings-android python-darwin react-native

## Android
.PHONY: android
android: aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
android: aarch64-linux-android x86_64-linux-android
cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/breez_sdk_liquid.udl --no-format --language kotlin -o ffi/kotlin

aarch64-linux-android: $(SOURCES) ndk-home
cargo ndk -t aarch64-linux-android -o ffi/kotlin/jniLibs build --release
cp -a $(ANDROID_NDK_HOME)/toolchains/llvm/prebuilt/$(OS_NAME)-x86_64/sysroot/usr/lib/aarch64-linux-android/libc++_shared.so ffi/kotlin/jniLibs/arm64-v8a/

armv7-linux-androideabi: $(SOURCES) ndk-home
cargo ndk -t armv7-linux-androideabi -o ffi/kotlin/jniLibs build --release
cp -a $(ANDROID_NDK_HOME)/toolchains/llvm/prebuilt/$(OS_NAME)-x86_64/sysroot/usr/lib/arm-linux-androideabi/libc++_shared.so ffi/kotlin/jniLibs/armeabi-v7a/

i686-linux-android: $(SOURCES) ndk-home
cargo ndk -t i686-linux-android -o ffi/kotlin/jniLibs build --release
cp -a $(ANDROID_NDK_HOME)/toolchains/llvm/prebuilt/$(OS_NAME)-x86_64/sysroot/usr/lib/i686-linux-android/libc++_shared.so ffi/kotlin/jniLibs/x86/

x86_64-linux-android: $(SOURCES) ndk-home
cargo ndk -t x86_64-linux-android -o ffi/kotlin/jniLibs build --release
cp -a $(ANDROID_NDK_HOME)/toolchains/llvm/prebuilt/$(OS_NAME)-x86_64/sysroot/usr/lib/x86_64-linux-android/libc++_shared.so ffi/kotlin/jniLibs/x86_64/
Expand Down

0 comments on commit 14d5bc9

Please sign in to comment.