Skip to content

Commit

Permalink
ci: build fat meesign_crypto library for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jjanku committed Mar 19, 2024
1 parent 1b80a8f commit 1aad1f4
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/flutter-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ jobs:
bash ./tool/cargo-config-gen-android.sh >> ~/.cargo/config.toml
cat ~/.cargo/config.toml
- name: Set up Rust for macOS
if: matrix.target == 'macOS'
run: |
rustup target add \
x86_64-apple-darwin \
aarch64-apple-darwin
- name: Install Linux dependencies
if: matrix.target == 'Linux'
run: |
Expand Down Expand Up @@ -193,9 +200,12 @@ jobs:
OPENSSL_STATIC: 1
run: |
cd meesign_native/native/meesign-crypto/
cargo build --release
cp target/release/libmeesign_crypto.dylib ../../../build/macos/Build/Products/Release/meesign_client.app/Contents/Frameworks/
cargo build --release --target x86_64-apple-darwin
cargo build --release --target aarch64-apple-darwin
lipo -create -output libmeesign_crypto.dylib \
target/x86_64-apple-darwin/release/libmeesign_crypto.dylib \
target/aarch64-apple-darwin/release/libmeesign_crypto.dylib
cp libmeesign_crypto.dylib ../../../build/macos/Build/Products/Release/meesign_client.app/Contents/Frameworks/
# Package the build.
- name: Copy VC redistributables to release directory for Windows
Expand Down

0 comments on commit 1aad1f4

Please sign in to comment.