Skip to content

Commit

Permalink
fix: pin cross to 0.2.5 for glibc 2.23
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jan 24, 2024
1 parent 367aa25 commit 1b84777
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/pact_ffi/release-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ gzip -c ../target/x86_64-unknown-linux-musl/release/libpact_ffi.a > ../target/ar
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 cross --git https://github.com/cross-rs/cross
cargo install cross@0.2.5
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
2 changes: 1 addition & 1 deletion rust/pact_mock_server_cli/release-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gzip -c ../target/release/pact_mock_server_cli > ../target/artifacts/pact_mock_s
openssl dgst -sha256 -r ../target/artifacts/pact_mock_server_cli-linux-x86_64.gz > ../target/artifacts/pact_mock_server_cli-linux-x86_64.gz.sha256

echo -- Build the aarch64 release artifacts --
cargo install cross
cargo install cross@0.2.5
cross build --target aarch64-unknown-linux-gnu --release
gzip -c ../target/aarch64-unknown-linux-gnu/release/pact_mock_server_cli > ../target/artifacts/pact_mock_server_cli-linux-aarch64.gz
openssl dgst -sha256 -r ../target/artifacts/pact_mock_server_cli-linux-aarch64.gz > ../target/artifacts/pact_mock_server_cli-linux-aarch64.gz.sha256
3 changes: 2 additions & 1 deletion rust/pact_verifier_cli/release-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ openssl dgst -sha256 -r ../target/artifacts/pact_verifier_cli-linux-x86_64.gz >

# aarch64 is failing to build on Rust 1.70+, and the dependencies need Rust 1.70+
#echo -- Build the aarch64 release artifacts --
#cargo install cross

#cargo install cross@0.2.5
#cross build --target aarch64-unknown-linux-gnu --release
#gzip -c ../target/aarch64-unknown-linux-gnu/release/pact_verifier_cli > ../target/artifacts/pact_verifier_cli-linux-aarch64.gz
#openssl dgst -sha256 -r ../target/artifacts/pact_verifier_cli-linux-aarch64.gz > ../target/artifacts/pact_verifier_cli-linux-aarch64.gz.sha256

0 comments on commit 1b84777

Please sign in to comment.