Skip to content

Commit

Permalink
PMM-12899 fix architecture for the client
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Oct 19, 2024
1 parent f35a85f commit 1aad3f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build/scripts/build-client-binary
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ gobuild_component() {
local archive=$(ls ${source_dir} | grep -e "${parent_component}-\w*\.tar\.gz" | head -n1)
local build_command

if [ "$(uname -o)" = "Darwin" ]; then
local GOARCH=$(uname -m)
fi

if [ -d "${root_dir}/go-build" ]; then
volume_mounts+=" -v ${root_dir}/go-build:/home/builder/.cache/go-build"
fi
Expand Down
3 changes: 1 addition & 2 deletions build/scripts/build-client-rpm
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ main() {
export pmm_version=$pmm_version
export pmm_release=$pmm_release
export sudo_path=\$$(command -v sudo)
mkdir -p /tmp/pmm
cd /home/builder/results
/home/builder/bin/build-client-packages \
--builddir=/tmp/pmm \
--build_rpm=1
\$sudo_path chown -R $(id -u):$(id -g) /home/builder/results/rpm
sudo_path chown -R $(id -u):$(id -g) /home/builder/results/rpm
"
}

Expand Down

0 comments on commit 1aad3f7

Please sign in to comment.