Skip to content

Commit

Permalink
feat: verifier/mock_server clis - build for musl
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Feb 8, 2024
1 parent 8be1bf3 commit 9196efe
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compatibility-suite/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions rust/pact_mock_server_cli/release-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,16 @@ cargo clean
cross build --target aarch64-unknown-linux-gnu --release
gzip -c ../target/aarch64-unknown-linux-gnu/release/pact_mock_server_cli > ../release_artifacts/pact_mock_server_cli-linux-aarch64.gz
openssl dgst -sha256 -r ../release_artifacts/pact_mock_server_cli-linux-aarch64.gz > ../release_artifacts/pact_mock_server_cli-linux-aarch64.gz.sha256

echo -- Build the musl release artifacts --
sudo apt install musl-tools
rustup target add x86_64-unknown-linux-musl
cargo build --release --target=x86_64-unknown-linux-musl
gzip -c ../target/x86_64-unknown-linux-musl/release/pact_mock_server_cli > ../release_artifacts/pact_mock_server_cli-linux-x86_64-musl.gz
openssl dgst -sha256 -r ../release_artifacts/pact_mock_server_cli-linux-x86_64-musl.gz > ../release_artifacts/pact_mock_server_cli-linux-x86_64-musl.gz.sha256

echo -- Build the musl aarch64 release artifacts --
cargo clean
cross build --release --target=aarch64-unknown-linux-musl
gzip -c ../target/aarch64-unknown-linux-gnu/release/pact_mock_server_cli > ../release_artifacts/pact_mock_server_cli-linux-aarch64-musl.gz
openssl dgst -sha256 -r ../release_artifacts/pact_mock_server_cli-linux-aarch64-musl.gz > ../release_artifacts/pact_mock_server_cli-linux-aarch64-musl.gz.sha256
13 changes: 13 additions & 0 deletions rust/pact_verifier_cli/release-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,16 @@ cargo clean
cross build --target aarch64-unknown-linux-gnu --release
gzip -c ../target/aarch64-unknown-linux-gnu/release/pact_verifier_cli > ../release_artifacts/pact_verifier_cli-linux-aarch64.gz
openssl dgst -sha256 -r ../release_artifacts/pact_verifier_cli-linux-aarch64.gz > ../release_artifacts/pact_verifier_cli-linux-aarch64.gz.sha256

echo -- Build the musl release artifacts --
sudo apt install musl-tools
rustup target add x86_64-unknown-linux-musl
cargo build --release --target=x86_64-unknown-linux-musl
gzip -c ../target/x86_64-unknown-linux-musl/release/pact_verifier_cli > ../release_artifacts/pact_verifier_cli-linux-x86_64-musl.gz
openssl dgst -sha256 -r ../release_artifacts/pact_verifier_cli-linux-x86_64-musl.gz > ../release_artifacts/pact_verifier_cli-linux-x86_64-musl.gz.sha256

echo -- Build the musl aarch64 release artifacts --
cargo clean
cross build --release --target=aarch64-unknown-linux-musl
gzip -c ../target/aarch64-unknown-linux-gnu/release/pact_verifier_cli > ../release_artifacts/pact_verifier_cli-linux-aarch64-musl.gz
openssl dgst -sha256 -r ../release_artifacts/pact_verifier_cli-linux-aarch64-musl.gz > ../release_artifacts/pact_verifier_cli-linux-aarch64-musl.gz.sha256

0 comments on commit 9196efe

Please sign in to comment.