summaryrefslogtreecommitdiff
path: root/.ci-make.sh
diff options
context:
space:
mode:
authorcrystal <crystal@noreply.codeberg.org>2024-04-09 05:49:38 -0600
committercrystal <crystal@noreply.codeberg.org>2024-04-09 05:49:38 -0600
commit391360b320cbbef047a651dda3abfa3d4264935b (patch)
treede3d853dc550e0b8e826fecd6e139157e88f778b /.ci-make.sh
parent03fcb8fe818d4658d7ded45d89b2d941e031ef6c (diff)
install go1.21.9
Diffstat (limited to '.ci-make.sh')
-rwxr-xr-x.ci-make.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/.ci-make.sh b/.ci-make.sh
index 597be52..7c112bf 100755
--- a/.ci-make.sh
+++ b/.ci-make.sh
@@ -155,6 +155,13 @@ case "$1" in
ln -sf /usr/lib/go-$DEP_GOLANG_VER/bin/go /usr/local/bin/go
adduser --quiet --comment forgejo --disabled-password forgejo
chown -R forgejo:forgejo .
+ if [ "$DEP_GOLANG_NODEB_REV" ];then
+ go install golang.org/dl/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV@latest
+ ln -s ~/go/bin/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV ~/go/bin/go
+ export PATH="$HOME/go/bin:$PATH"
+ go download
+ go version
+ fi
;;
esac