Skip to content

Commit

Permalink
Merge pull request #372 from YOU54F/feat/musl_aarch64_ffi
Browse files Browse the repository at this point in the history
feat: enable aarch64-unknown-linux-musl libpact_ffi.a
  • Loading branch information
rholshausen authored Jan 24, 2024
2 parents 3639009 + 835bd21 commit 39fdd0c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rust/pact_ffi/release-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ cargo build --release --target=x86_64-unknown-linux-musl
gzip -c ../target/x86_64-unknown-linux-musl/release/libpact_ffi.a > ../target/artifacts/libpact_ffi-linux-x86_64-musl.a.gz
openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-linux-x86_64-musl.a.gz > ../target/artifacts/libpact_ffi-linux-x86_64-musl.a.gz.sha256

echo -- Build the aarch64 release artifacts --
cargo install [email protected]
echo -- Build the musl aarch64 release artifacts --
cross build --release --target=aarch64-unknown-linux-musl
gzip -c ../target/aarch64-unknown-linux-musl/release/libpact_ffi.a > ../target/artifacts/libpact_ffi-linux-aarch64-musl.a.gz
openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-linux-aarch64-musl.a.gz > ../target/artifacts/libpact_ffi-linux-aarch64-musl.a.gz.sha256

echo -- Build the aarch64 release artifacts --
cross build --target aarch64-unknown-linux-gnu --release
gzip -c ../target/aarch64-unknown-linux-gnu/release/libpact_ffi.so > ../target/artifacts/libpact_ffi-linux-aarch64.so.gz
openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-linux-aarch64.so.gz > ../target/artifacts/libpact_ffi-linux-aarch64.so.gz.sha256
Expand Down

0 comments on commit 39fdd0c

Please sign in to comment.