Skip to content

Commit

Permalink
Minor tweak to publishing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Oct 4, 2024
1 parent 671415f commit a810992
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions scripts/publish/_prepublish_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0 OR ISC

set -e

function usage {
echo "Usage: $(basename "${0}"): -c CRATE_PATH [-f]"
Expand Down Expand Up @@ -39,7 +38,7 @@ pushd "${CRATE_DIR}" &>/dev/null
export GOPROXY=direct

cargo clean --target-dir "${TEMP_TARGET_DIR}"
cargo clippy --fix --allow-no-vcs
cargo +nightly clippy --fix --allow-no-vcs
cargo fmt
cargo test --target-dir "${TEMP_TARGET_DIR}" # sanity check
cargo package --target-dir "${TEMP_TARGET_DIR}" --allow-dirty # checks if published package will build.
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish/publish-aws-lc-fips-sys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0 OR ISC

set -e
set -ex

SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
PUBLISH=0
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish/publish-aws-lc-rs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0 OR ISC

set -e
set -ex

SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
PUBLISH=0
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish/publish-aws-lc-sys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0 OR ISC

set -e
set -ex

SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
PUBLISH=0
Expand Down

0 comments on commit a810992

Please sign in to comment.