-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #374 from YOU54F/ci/cargo_clean
chore: migrate target/artifacts to release_artifacts to avoid cargo clean loss
- Loading branch information
Showing
13 changed files
with
79 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/bin/bash | ||
|
||
cargo clean | ||
mkdir -p ../target/artifacts | ||
mkdir -p ../release_artifacts | ||
cargo build --release | ||
gzip -c ../target/release/pact_mock_server_cli.exe > ../target/artifacts/pact_mock_server_cli-windows-x86_64.exe.gz | ||
openssl dgst -sha256 -r ../target/artifacts/pact_mock_server_cli-windows-x86_64.exe.gz > ../target/artifacts/pact_mock_server_cli-windows-x86_64.exe.gz.sha256 | ||
gzip -c ../target/release/pact_mock_server_cli.exe > ../release_artifacts/pact_mock_server_cli-windows-x86_64.exe.gz | ||
openssl dgst -sha256 -r ../release_artifacts/pact_mock_server_cli-windows-x86_64.exe.gz > ../release_artifacts/pact_mock_server_cli-windows-x86_64.exe.gz.sha256 | ||
|
||
echo -- Build the aarch64 release artifacts -- | ||
|
||
cargo build --target aarch64-pc-windows-msvc --release | ||
gzip -c ../target/aarch64-pc-windows-msvc/release/pact_mock_server_cli.exe > ../target/artifacts/pact_mock_server_cli-windows-aarch64.exe.gz | ||
openssl dgst -sha256 -r ../target/artifacts/pact_mock_server_cli-windows-aarch64.exe.gz > ../target/artifacts/pact_mock_server_cli-windows-aarch64.exe.gz.sha256 | ||
gzip -c ../target/aarch64-pc-windows-msvc/release/pact_mock_server_cli.exe > ../release_artifacts/pact_mock_server_cli-windows-aarch64.exe.gz | ||
openssl dgst -sha256 -r ../release_artifacts/pact_mock_server_cli-windows-aarch64.exe.gz > ../release_artifacts/pact_mock_server_cli-windows-aarch64.exe.gz.sha256 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#!/bin/bash -xe | ||
|
||
mkdir -p ../target/artifacts | ||
mkdir -p ../release_artifacts | ||
cargo build --release | ||
gzip -c ../target/release/pact_verifier_cli > ../target/artifacts/pact_verifier_cli-osx-x86_64.gz | ||
openssl dgst -sha256 -r ../target/artifacts/pact_verifier_cli-osx-x86_64.gz > ../target/artifacts/pact_verifier_cli-osx-x86_64.gz.sha256 | ||
gzip -c ../target/release/pact_verifier_cli > ../release_artifacts/pact_verifier_cli-osx-x86_64.gz | ||
openssl dgst -sha256 -r ../release_artifacts/pact_verifier_cli-osx-x86_64.gz > ../release_artifacts/pact_verifier_cli-osx-x86_64.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 | ||
|
||
gzip -c ../target/aarch64-apple-darwin/release/pact_verifier_cli > ../target/artifacts/pact_verifier_cli-osx-aarch64.gz | ||
openssl dgst -sha256 -r ../target/artifacts/pact_verifier_cli-osx-aarch64.gz > ../target/artifacts/pact_verifier_cli-osx-aarch64.gz.sha256 | ||
gzip -c ../target/aarch64-apple-darwin/release/pact_verifier_cli > ../release_artifacts/pact_verifier_cli-osx-aarch64.gz | ||
openssl dgst -sha256 -r ../release_artifacts/pact_verifier_cli-osx-aarch64.gz > ../release_artifacts/pact_verifier_cli-osx-aarch64.gz.sha256 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p ../target/artifacts | ||
mkdir -p ../release_artifacts | ||
cargo build --release | ||
gzip -c ../target/release/pact_verifier_cli.exe > ../target/artifacts/pact_verifier_cli-windows-x86_64.exe.gz | ||
openssl dgst -sha256 -r ../target/artifacts/pact_verifier_cli-windows-x86_64.exe.gz > ../target/artifacts/pact_verifier_cli-windows-x86_64.exe.gz.sha256 | ||
|
||
gzip -c ../target/release/pact_verifier_cli.exe > ../release_artifacts/pact_verifier_cli-windows-x86_64.exe.gz | ||
openssl dgst -sha256 -r ../release_artifacts/pact_verifier_cli-windows-x86_64.exe.gz > ../release_artifacts/pact_verifier_cli-windows-x86_64.exe.gz.sha256 | ||
|
||
echo -- Build the aarch64 release artifacts -- | ||
|
||
cargo build --target aarch64-pc-windows-msvc --release | ||
gzip -c ../target/aarch64-pc-windows-msvc/release/pact_verifier_cli.exe > ../target/artifacts/pact_verifier_cli-windows-aarch64.exe.gz | ||
openssl dgst -sha256 -r ../target/artifacts/pact_verifier_cli-windows-aarch64.exe.gz > ../target/artifacts/pact_verifier_cli-windows-aarch64.exe.gz.sha256 | ||
gzip -c ../target/aarch64-pc-windows-msvc/release/pact_verifier_cli.exe > ../release_artifacts/pact_verifier_cli-windows-aarch64.exe.gz | ||
openssl dgst -sha256 -r ../release_artifacts/pact_verifier_cli-windows-aarch64.exe.gz > ../release_artifacts/pact_verifier_cli-windows-aarch64.exe.gz.sha256 | ||
|