Skip to content

Commit de43d32

Browse files
build: fix uploading aarch64 packages
1 parent 26f2924 commit de43d32

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

ci_scripts/upload.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,25 @@ case "$BUILD_OS_NAME" in
8080
echo Uploading linux artifacts...
8181
create_dir linux
8282

83+
HOST_ARCH="$(uname -m)"
84+
case "$HOST_ARCH" in
85+
x86_64)
86+
BUILD_ARCH="x86_64"
87+
;;
88+
aarch64|arm64)
89+
BUILD_ARCH="aarch64"
90+
;;
91+
*)
92+
echo "Unsupported architecture: $arch"
93+
exit 1
94+
;;
95+
96+
8397
# Upload packages / source only for release build
8498
if [ "$DEBUG" != "true" ]; then
8599
upload_files "deadbeef-*.tar.bz2" linux
86-
upload_files "package_out/x86_64/debian/*.deb" linux
87-
upload_files "package_out/x86_64/arch/*.pkg.tar.xz" linux
100+
upload_files "package_out/$BUILD_ARCH/debian/*.deb" linux
101+
upload_files "package_out/$BUILD_ARCH/arch/*.pkg.tar.xz" linux
88102
fi
89103
# This will match the build tarballs and debug symbols
90104
upload_files "portable_out/build/*.tar.bz2" linux

0 commit comments

Comments
 (0)