Fix installation of Go from gimme

GHA does not have gimme pre-installed
This commit is contained in:
William S Fulton 2021-10-22 14:57:58 +01:00
commit 87c50d811d
2 changed files with 11 additions and 1 deletions

View file

@ -6,6 +6,12 @@
set -e # exit on failure (same as -o errexit)
case "$SWIGLANG" in
"go")
if [[ "$VER" ]]; then
eval "$($HOME/bin/gimme ${VER}.x)"
$HOME/bin/gimme --list
fi
;;
"javascript")
case "$ENGINE" in
"node")

View file

@ -26,7 +26,11 @@ case "$SWIGLANG" in
;;
"go")
if [[ "$VER" ]]; then
eval "$(gimme ${VER}.x)"
mkdir -p $HOME/bin
curl -sL -o $HOME/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
chmod +x $HOME/bin/gimme
eval "$($HOME/bin/gimme ${VER}.x)"
$HOME/bin/gimme --list
fi
;;
"javascript")