Skip to content

Commit

Permalink
Merge pull request #374 from YOU54F/ci/cargo_clean
Browse files Browse the repository at this point in the history
chore: migrate target/artifacts to release_artifacts to avoid cargo clean loss
  • Loading branch information
rholshausen authored Jan 24, 2024
2 parents 39fdd0c + 6fa097a commit 8b98286
Show file tree
Hide file tree
Showing 13 changed files with 79 additions and 71 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ jobs:
uses: actions/upload-artifact@v3.1.2
with:
name: release-artifacts
path: rust/target/artifacts
path: rust/release_artifacts
- name: Upload Release Assets
if: startsWith(github.ref, 'refs/tags/libpact_ffi') || startsWith(github.ref, 'refs/tags/pact_verifier_cli') || startsWith(github.ref, 'refs/tags/pact_mock_server_cli')
uses: svenstaro/upload-release-action@2.5.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: rust/target/artifacts/*
file: rust/release_artifacts/*
file_glob: true
tag: ${{ github.ref }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ a.out

# Generated by Cargo
target/
# Generated Release Artifacts
release_artifacts

node_modules/
*.log
Expand Down
6 changes: 3 additions & 3 deletions rust/pact_ffi/release-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

cargo clean
cargo lipo --release
mkdir -p ../target/artifacts
gzip -c ../target/universal/release/libpact_ffi.a > ../target/artifacts/libpact_ffi-ios-universal.a.gz
openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-ios-universal.a.gz > ../target/artifacts/libpact_ffi-ios-universal.a.gz.sha256
mkdir -p ../release_artifacts
gzip -c ../target/universal/release/libpact_ffi.a > ../release_artifacts/libpact_ffi-ios-universal.a.gz
openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-ios-universal.a.gz > ../release_artifacts/libpact_ffi-ios-universal.a.gz.sha256
25 changes: 13 additions & 12 deletions rust/pact_ffi/release-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ set -e

echo -- Setup directories --
cargo clean
mkdir -p ../target/artifacts
mkdir -p ../release_artifacts

echo -- Build the Docker build image --
docker build -f Dockerfile.linux-build -t pact-ffi-build .

echo -- Build the release artifacts --
docker run -t --rm --user "$(id -u)":"$(id -g)" -v $(pwd)/..:/workspace -w /workspace/pact_ffi pact-ffi-build -c 'cargo build --release'
gzip -c ../target/release/libpact_ffi.so > ../target/artifacts/libpact_ffi-linux-x86_64.so.gz
openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-linux-x86_64.so.gz > ../target/artifacts/libpact_ffi-linux-x86_64.so.gz.sha256
gzip -c ../target/release/libpact_ffi.a > ../target/artifacts/libpact_ffi-linux-x86_64.a.gz
openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-linux-x86_64.a.gz > ../target/artifacts/libpact_ffi-linux-x86_64.a.gz.sha256
gzip -c ../target/release/libpact_ffi.so > ../release_artifacts/libpact_ffi-linux-x86_64.so.gz
openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-linux-x86_64.so.gz > ../release_artifacts/libpact_ffi-linux-x86_64.so.gz.sha256
gzip -c ../target/release/libpact_ffi.a > ../release_artifacts/libpact_ffi-linux-x86_64.a.gz
openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-linux-x86_64.a.gz > ../release_artifacts/libpact_ffi-linux-x86_64.a.gz.sha256

echo -- Generate the header files --
rustup toolchain install nightly
Expand All @@ -27,14 +27,14 @@ rustup run nightly cbindgen \
--config cbindgen-c++.toml \
--crate pact_ffi \
--output include/pact-cpp.h
cp include/*.h ../target/artifacts
cp include/*.h ../release_artifacts

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/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
gzip -c ../target/x86_64-unknown-linux-musl/release/libpact_ffi.a > ../release_artifacts/libpact_ffi-linux-x86_64-musl.a.gz
openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-linux-x86_64-musl.a.gz > ../release_artifacts/libpact_ffi-linux-x86_64-musl.a.gz.sha256

cargo install cross@0.2.5
echo -- Build the musl aarch64 release artifacts --
Expand All @@ -43,8 +43,9 @@ gzip -c ../target/aarch64-unknown-linux-musl/release/libpact_ffi.a > ../target/a
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 --
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
gzip -c ../target/aarch64-unknown-linux-gnu/release/libpact_ffi.a > ../target/artifacts/libpact_ffi-linux-aarch64.a.gz
openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-linux-aarch64.a.gz > ../target/artifacts/libpact_ffi-linux-aarch64.a.gz.sha256
gzip -c ../target/aarch64-unknown-linux-gnu/release/libpact_ffi.so > ../release_artifacts/libpact_ffi-linux-aarch64.so.gz
openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-linux-aarch64.so.gz > ../release_artifacts/libpact_ffi-linux-aarch64.so.gz.sha256
gzip -c ../target/aarch64-unknown-linux-gnu/release/libpact_ffi.a > ../release_artifacts/libpact_ffi-linux-aarch64.a.gz
openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-linux-aarch64.a.gz > ../release_artifacts/libpact_ffi-linux-aarch64.a.gz.sha256
18 changes: 9 additions & 9 deletions rust/pact_ffi/release-osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

cargo clean
cargo build --release
mkdir -p ../target/artifacts
gzip -c ../target/release/libpact_ffi.dylib > ../target/artifacts/libpact_ffi-osx-x86_64.dylib.gz
openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-osx-x86_64.dylib.gz > ../target/artifacts/libpact_ffi-osx-x86_64.dylib.gz.sha256
gzip -c ../target/release/libpact_ffi.a > ../target/artifacts/libpact_ffi-osx-x86_64.a.gz
openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-osx-x86_64.a.gz > ../target/artifacts/libpact_ffi-osx-x86_64.a.gz.sha256
mkdir -p ../release_artifacts
gzip -c ../target/release/libpact_ffi.dylib > ../release_artifacts/libpact_ffi-osx-x86_64.dylib.gz
openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-osx-x86_64.dylib.gz > ../release_artifacts/libpact_ffi-osx-x86_64.dylib.gz.sha256
gzip -c ../target/release/libpact_ffi.a > ../release_artifacts/libpact_ffi-osx-x86_64.a.gz
openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-osx-x86_64.a.gz > ../release_artifacts/libpact_ffi-osx-x86_64.a.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/libpact_ffi.dylib > ../target/artifacts/libpact_ffi-osx-aarch64-apple-darwin.dylib.gz
openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-osx-aarch64-apple-darwin.dylib.gz > ../target/artifacts/libpact_ffi-osx-aarch64-apple-darwin.dylib.gz.sha256
gzip -c ../target/aarch64-apple-darwin/release/libpact_ffi.a > ../target/artifacts/libpact_ffi-osx-aarch64-apple-darwin.a.gz
openssl dgst -sha256 -r ../target/artifacts/libpact_ffi-osx-aarch64-apple-darwin.a.gz > ../target/artifacts/libpact_ffi-osx-aarch64-apple-darwin.a.gz.sha256
gzip -c ../target/aarch64-apple-darwin/release/libpact_ffi.dylib > ../release_artifacts/libpact_ffi-osx-aarch64-apple-darwin.dylib.gz
openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-osx-aarch64-apple-darwin.dylib.gz > ../release_artifacts/libpact_ffi-osx-aarch64-apple-darwin.dylib.gz.sha256
gzip -c ../target/aarch64-apple-darwin/release/libpact_ffi.a > ../release_artifacts/libpact_ffi-osx-aarch64-apple-darwin.a.gz
openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-osx-aarch64-apple-darwin.a.gz > ../release_artifacts/libpact_ffi-osx-aarch64-apple-darwin.a.gz.sha256
27 changes: 14 additions & 13 deletions rust/pact_ffi/release-win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@

cargo clean
cargo build --release
mkdir -p ../target/artifacts
gzip -c ../target/release/pact_ffi.dll > ../target/artifacts/pact_ffi-windows-x86_64.dll.gz
openssl dgst -sha256 -r ../target/artifacts/pact_ffi-windows-x86_64.dll.gz > ../target/artifacts/pact_ffi-windows-x86_64.dll.gz.sha256
gzip -c ../target/release/pact_ffi.dll.lib > ../target/artifacts/pact_ffi-windows-x86_64.dll.lib.gz
openssl dgst -sha256 -r ../target/artifacts/pact_ffi-windows-x86_64.dll.lib.gz > ../target/artifacts/pact_ffi-windows-x86_64.dll.lib.gz.sha256
gzip -c ../target/release/pact_ffi.lib > ../target/artifacts/pact_ffi-windows-x86_64.lib.gz
openssl dgst -sha256 -r ../target/artifacts/pact_ffi-windows-x86_64.lib.gz > ../target/artifacts/pact_ffi-windows-x86_64.lib.gz.sha256
mkdir -p ../release_artifacts

gzip -c ../target/release/pact_ffi.dll > ../release_artifacts/pact_ffi-windows-x86_64.dll.gz
openssl dgst -sha256 -r ../release_artifacts/pact_ffi-windows-x86_64.dll.gz > ../release_artifacts/pact_ffi-windows-x86_64.dll.gz.sha256
gzip -c ../target/release/pact_ffi.dll.lib > ../release_artifacts/pact_ffi-windows-x86_64.dll.lib.gz
openssl dgst -sha256 -r ../release_artifacts/pact_ffi-windows-x86_64.dll.lib.gz > ../release_artifacts/pact_ffi-windows-x86_64.dll.lib.gz.sha256
gzip -c ../target/release/pact_ffi.lib > ../release_artifacts/pact_ffi-windows-x86_64.lib.gz
openssl dgst -sha256 -r ../release_artifacts/pact_ffi-windows-x86_64.lib.gz > ../release_artifacts/pact_ffi-windows-x86_64.lib.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_ffi.dll > ../target/artifacts/pact_ffi-windows-aarch64.dll.gz
openssl dgst -sha256 -r ../target/artifacts/pact_ffi-windows-aarch64.dll.gz > ../target/artifacts/pact_ffi-windows-aarch64.dll.gz.sha256
gzip -c ../target/aarch64-pc-windows-msvc/release/pact_ffi.dll.lib > ../target/artifacts/pact_ffi-windows-aarch64.dll.lib.gz
openssl dgst -sha256 -r ../target/artifacts/pact_ffi-windows-aarch64.dll.lib.gz > ../target/artifacts/pact_ffi-windows-aarch64.dll.lib.gz.sha256
gzip -c ../target/aarch64-pc-windows-msvc/release/pact_ffi.lib > ../target/artifacts/pact_ffi-windows-aarch64.lib.gz
openssl dgst -sha256 -r ../target/artifacts/pact_ffi-windows-aarch64.lib.gz > ../target/artifacts/pact_ffi-windows-aarch64.lib.gz.sha256
gzip -c ../target/aarch64-pc-windows-msvc/release/pact_ffi.dll > ../release_artifacts/pact_ffi-windows-aarch64.dll.gz
openssl dgst -sha256 -r ../release_artifacts/pact_ffi-windows-aarch64.dll.gz > ../release_artifacts/pact_ffi-windows-aarch64.dll.gz.sha256
gzip -c ../target/aarch64-pc-windows-msvc/release/pact_ffi.dll.lib > ../release_artifacts/pact_ffi-windows-aarch64.dll.lib.gz
openssl dgst -sha256 -r ../release_artifacts/pact_ffi-windows-aarch64.dll.lib.gz > ../release_artifacts/pact_ffi-windows-aarch64.dll.lib.gz.sha256
gzip -c ../target/aarch64-pc-windows-msvc/release/pact_ffi.lib > ../release_artifacts/pact_ffi-windows-aarch64.lib.gz
openssl dgst -sha256 -r ../release_artifacts/pact_ffi-windows-aarch64.lib.gz > ../release_artifacts/pact_ffi-windows-aarch64.lib.gz.sha256
2 changes: 1 addition & 1 deletion rust/pact_ffi/release.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ executeOnShell 'git pull'

ask('Execute Build?: [Y]') {
executeOnShell 'cargo clean'
executeOnShell 'mkdir -p ../target/artifacts'
executeOnShell 'mkdir -p ../release_artifacts'
executeOnShell 'cargo build'
executeOnShell 'cargo test'
}
Expand Down
11 changes: 6 additions & 5 deletions rust/pact_mock_server_cli/release-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

cargo clean

mkdir -p ../target/artifacts
mkdir -p ../release_artifacts
cargo build --release
gzip -c ../target/release/pact_mock_server_cli > ../target/artifacts/pact_mock_server_cli-linux-x86_64.gz
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
gzip -c ../target/release/pact_mock_server_cli > ../release_artifacts/pact_mock_server_cli-linux-x86_64.gz
openssl dgst -sha256 -r ../release_artifacts/pact_mock_server_cli-linux-x86_64.gz > ../release_artifacts/pact_mock_server_cli-linux-x86_64.gz.sha256

echo -- Build the aarch64 release artifacts --
cargo install cross@0.2.5
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
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
12 changes: 6 additions & 6 deletions rust/pact_mock_server_cli/release-osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

cargo clean

mkdir -p ../target/artifacts
mkdir -p ../release_artifacts
cargo build --release
gzip -c ../target/release/pact_mock_server_cli > ../target/artifacts/pact_mock_server_cli-osx-x86_64.gz
gzip -c ../target/release/pact_mock_server_cli > ../release_artifacts/pact_mock_server_cli-osx-x86_64.gz
#cargo build --release --target x86_64-apple-ios
#gzip -c ../target/x86_64-apple-ios/release/pact_mock_server_cli > ../target/artifacts/pact_mock_server_cli-ios-x86_64.gz
openssl dgst -sha256 -r ../target/artifacts/pact_mock_server_cli-osx-x86_64.gz > ../target/artifacts/pact_mock_server_cli-osx-x86_64.gz.sha256
#gzip -c ../target/x86_64-apple-ios/release/pact_mock_server_cli > ../release_artifacts/pact_mock_server_cli-ios-x86_64.gz
openssl dgst -sha256 -r ../release_artifacts/pact_mock_server_cli-osx-x86_64.gz > ../release_artifacts/pact_mock_server_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_mock_server_cli > ../target/artifacts/pact_mock_server_cli-osx-aarch64.gz
openssl dgst -sha256 -r ../target/artifacts/pact_mock_server_cli-osx-aarch64.gz > ../target/artifacts/pact_mock_server_cli-osx-aarch64.gz.sha256
gzip -c ../target/aarch64-apple-darwin/release/pact_mock_server_cli > ../release_artifacts/pact_mock_server_cli-osx-aarch64.gz
openssl dgst -sha256 -r ../release_artifacts/pact_mock_server_cli-osx-aarch64.gz > ../release_artifacts/pact_mock_server_cli-osx-aarch64.gz.sha256
10 changes: 5 additions & 5 deletions rust/pact_mock_server_cli/release-win.sh
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
11 changes: 6 additions & 5 deletions rust/pact_verifier_cli/release-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

cargo clean

mkdir -p ../target/artifacts
mkdir -p ../release_artifacts
cargo build --release
gzip -c ../target/release/pact_verifier_cli > ../target/artifacts/pact_verifier_cli-linux-x86_64.gz
openssl dgst -sha256 -r ../target/artifacts/pact_verifier_cli-linux-x86_64.gz > ../target/artifacts/pact_verifier_cli-linux-x86_64.gz.sha256
gzip -c ../target/release/pact_verifier_cli > ../release_artifacts/pact_verifier_cli-linux-x86_64.gz
openssl dgst -sha256 -r ../release_artifacts/pact_verifier_cli-linux-x86_64.gz > ../release_artifacts/pact_verifier_cli-linux-x86_64.gz.sha256

echo -- Build the aarch64 release artifacts --

cargo install cross@0.2.5
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
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
10 changes: 5 additions & 5 deletions rust/pact_verifier_cli/release-osx.sh
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
12 changes: 7 additions & 5 deletions rust/pact_verifier_cli/release-win.sh
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

0 comments on commit 8b98286

Please sign in to comment.