Skip to content

Commit

Permalink
Fix promotion platform path (#245)
Browse files Browse the repository at this point in the history
Fixes an issue where the file name does not conform to a standard name
like `*<package_name>-<version>-o3de-<rev>-<platform>.tar.xz`

Tested in my fork

Signed-off-by: Mike Chang <[email protected]>
  • Loading branch information
amzn-changml authored Jan 30, 2024
1 parent 8bb7627 commit 651d81e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/promote-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,12 @@ jobs:
hash=$(echo "$content" | awk '{print $1}')
PACKAGE_NAME=$(echo "$file" | cut -d'-' -f1-2) # Extract package name without platform
PARTIAL_PACKAGE_NAME=$(echo "$PACKAGE_NAME" | cut -d'-' -f1) # Extract the first part of the package name for matching
PLATFORM=$(echo "$file" | cut -d'-' -f5)
PLATFORM=$(echo "$file" | rev | cut -d'-' -f1 | rev)
# Determine x86 or aarch64 cmake file name based on file suffix
if [[ $file == *linux-aarch64 ]]; then
CMAKE_FILE=BuiltInPackages_linux_aarch64.cmake
PLATFORM=linux
elif [[ $file == *linux ]]; then
CMAKE_FILE=BuiltInPackages_linux_x86_64.cmake
else
Expand Down

0 comments on commit 651d81e

Please sign in to comment.