Skip to content

Commit

Permalink
ci: cargo clean prior to cross build
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jan 24, 2024
1 parent e700d98 commit 2233131
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions rust/pact_ffi/release-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-linux-x86_64-musl.a.gz >

echo -- Build the aarch64 release artifacts --
cargo install cross --git https://github.com/cross-rs/cross
cargo clean
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
1 change: 1 addition & 0 deletions rust/pact_mock_server_cli/release-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ openssl dgst -sha256 -r ../target/artifacts/pact_mock_server_cli-linux-x86_64.gz

echo -- Build the aarch64 release artifacts --
cargo install cross
cargo clean
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
1 change: 1 addition & 0 deletions rust/pact_verifier_cli/release-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ 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 clean
#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 2233131

Please sign in to comment.