Skip to content

Commit

Permalink
Fix build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Jul 24, 2024
1 parent ac954fe commit 006bece
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions builder/init_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if [[ ${UNAME_M} =~ "x86_64" ]];then
echo "unsupported arch ${UNAME_M}";
fi

GOBIN_ZIP="go1.20.4.linux-${ARCH}.tar.gz"
GOBIN_ZIP="go1.21.12.linux-${ARCH}.tar.gz"
echo "GOBIN_ZIP:${GOBIN_ZIP}"

cd ~
Expand All @@ -60,12 +60,17 @@ done

clang --version

# install golang
wget https://go.dev/dl/${GOBIN_ZIP}
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf ${GOBIN_ZIP}
export PATH=/usr/local/go/bin:$PATH

if ! command -v go /dev/null
then
# install golang
wget https://go.dev/dl/${GOBIN_ZIP}
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf ${GOBIN_ZIP}
export PATH=/usr/local/go/bin:$PATH
fi

# clone repo
git clone https://github.com//sipcapture/rtcagent.git
cd ./rtcagent || exit
go mod tidy
${MAKE_RTCAGENT}

0 comments on commit 006bece

Please sign in to comment.