Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/actions/setup-kat/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,22 @@ runs:
echo "No versions of kat were found"
exit 1
fi
echo "Downloading kat version $kat_version to $PWD"


kat_dir="$HOME/kat"

echo "Creating directory for kat tool at $kat_dir"
mkdir -p "$kat_dir"
cd "$kat_dir"

echo "Downloading kat version $kat_version to $kat_dir"
aws s3 cp s3://kotlin-sdk-build-tools/kat-releases/$kat_version/kat-$kat_version.zip ./kat.zip --no-progress

echo "Unzipping kat tool"
unzip -qq ./kat.zip -d kat
unzip -qq ./kat.zip

kat_binary_path="$PWD/kat/kat-$kat_version/bin"
kat_binary_path="$kat_dir/kat-$kat_version/bin"
echo "Appending \"$kat_binary_path\" to path"
export PATH="$kat_binary_path:$PATH"
echo "$kat_binary_path" >> $GITHUB_PATH

echo "Installed kat version $(kat version)" || (echo "Failed to execute kat command" && exit 1)
echo "Installed kat version $(kat version)" || (echo "Failed to execute kat command" && exit 1)