Skip to content

Commit

Permalink
chore: remove cross usage from aarch64-apple-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jan 24, 2024
1 parent a2ba1cd commit bd636e7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rust/pact_ffi/release-osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ 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
cargo install cross --git https://github.com/cross-rs/cross
cross 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 install cross@0.2.5
cargo 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 bd636e7

Please sign in to comment.