Skip to content

Commit

Permalink
chore(ci): correct CARGO_TARGET_DIR env in release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jun 5, 2024
1 parent 933da08 commit 5d4505b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion rust/pact_ffi/release-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ APP_NAME=libpact_ffi
source "$RUST_DIR/scripts/gzip-and-sum.sh"
ARTIFACTS_DIR=${ARTIFACTS_DIR:-"$RUST_DIR/release_artifacts"}
mkdir -p "$ARTIFACTS_DIR"
export CARGO_TARGET_DIR=${CARO_TARGET_DIR:-"$RUST_DIR/target"}
export CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$RUST_DIR/target"}

# We target the oldest supported version of macOS.
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET:-12}
Expand Down
5 changes: 2 additions & 3 deletions rust/pact_ffi/release-win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ APP_NAME=pact_ffi
source "$RUST_DIR/scripts/gzip-and-sum.sh"
ARTIFACTS_DIR=${ARTIFACTS_DIR:-"$RUST_DIR/release_artifacts"}
mkdir -p "$ARTIFACTS_DIR"
export CARGO_TARGET_DIR=${CARO_TARGET_DIR:-"$RUST_DIR/target"}
export CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$RUST_DIR/target"}

# All flags passed to this script are passed to cargo.
case $1 in
Expand All @@ -21,8 +21,7 @@ aarch64-pc-windows-msvc)
TARGET=$1
shift
;;
*)
;;
*) ;;
esac
cargo_flags=("$@")
build_target() {
Expand Down
5 changes: 2 additions & 3 deletions rust/pact_verifier_cli/release-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ APP_NAME=pact_verifier_cli
source "$RUST_DIR/scripts/gzip-and-sum.sh"
ARTIFACTS_DIR=${ARTIFACTS_DIR:-"$RUST_DIR/release_artifacts"}
mkdir -p "$ARTIFACTS_DIR"
export CARGO_TARGET_DIR=${CARO_TARGET_DIR:-"$RUST_DIR/target"}
export CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$RUST_DIR/target"}

# We target the oldest supported version of macOS.
export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET:-12}
Expand All @@ -24,8 +24,7 @@ aarch64-apple-darwin)
TARGET=$1
shift
;;
*)
;;
*) ;;
esac
cargo_flags=("$@")

Expand Down
2 changes: 1 addition & 1 deletion rust/pact_verifier_cli/release-win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ APP_NAME=pact_verifier_cli
source "$RUST_DIR/scripts/gzip-and-sum.sh"
ARTIFACTS_DIR=${ARTIFACTS_DIR:-"$RUST_DIR/release_artifacts"}
mkdir -p "$ARTIFACTS_DIR"
export CARGO_TARGET_DIR=${CARO_TARGET_DIR:-"$RUST_DIR/target"}
export CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$RUST_DIR/target"}

# All flags passed to this script are passed to cargo.
case $1 in
Expand Down

0 comments on commit 5d4505b

Please sign in to comment.