Skip to content

Commit

Permalink
chore: try build Apple aarch64 with cross
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Nov 13, 2023
1 parent 28eb5c2 commit 9eb5424
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rust/pact_ffi/release-osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ gzip -c ../target/release/libpact_ffi.a > ../target/artifacts/libpact_ffi-osx-x8
openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-osx-x86_64.a.gz > ../target/artifacts/libpact_ffi-osx-x86_64.a.gz.sha256

# M1
export SDKROOT=$(xcrun -sdk macosx11.1 --show-sdk-path)
export MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx11.1 --show-sdk-platform-version)
cargo build --target aarch64-apple-darwin --release
#export SDKROOT=$(xcrun -sdk macosx11.1 --show-sdk-path)
#export MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx11.1 --show-sdk-platform-version)
#cargo build --target aarch64-apple-darwin --release
cargo install cross --git https://github.com/cross-rs/cross
cross build --target aarch64-apple-darwin --release

gzip -c ../target/aarch64-apple-darwin/release/libpact_ffi.dylib > ../target/artifacts/libpact_ffi-osx-aarch64-apple-darwin.dylib.gz
openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-osx-aarch64-apple-darwin.dylib.gz > ../target/artifacts/libpact_ffi-osx-aarch64-apple-darwin.dylib.gz.sha256
Expand Down

0 comments on commit 9eb5424

Please sign in to comment.