.github: update to Go 1.17

Update the default version of Go to 1.17 in the Github Actions as well.
This commit is contained in:
Dongsu Park 2021-09-23 11:09:22 +02:00
parent e7956fb4c7
commit 5525e14081
2 changed files with 3 additions and 3 deletions

View File

@ -16,8 +16,8 @@ fi
pushd "${SDK_OUTER_SRCDIR}/third_party/coreos-overlay" >/dev/null || exit pushd "${SDK_OUTER_SRCDIR}/third_party/coreos-overlay" >/dev/null || exit
# Parse the Manifest file for already present source files and keep the latest version in the current series # Parse the Manifest file for already present source files and keep the latest version in the current series
# DIST go1.16.src.tar.gz ... => 1.16 # DIST go1.17.src.tar.gz ... => 1.17
# DIST go1.16.3.src.tar.gz ... => 1.16.3 # DIST go1.17.1.src.tar.gz ... => 1.17.1
VERSION_OLD=$(sed -n "s/^DIST go\(${VERSION_SHORT}\.*[0-9]*\)\.src.*/\1/p" dev-lang/go/Manifest | sort -ruV | head -n1) VERSION_OLD=$(sed -n "s/^DIST go\(${VERSION_SHORT}\.*[0-9]*\)\.src.*/\1/p" dev-lang/go/Manifest | sort -ruV | head -n1)
if [[ "${VERSION_NEW}" = "${VERSION_OLD}" ]]; then if [[ "${VERSION_NEW}" = "${VERSION_OLD}" ]]; then
echo "already the latest Go, nothing to do" echo "already the latest Go, nothing to do"

View File

@ -13,7 +13,7 @@ jobs:
- name: Fetch latest Go release - name: Fetch latest Go release
id: fetch-latest-release id: fetch-latest-release
env: env:
GO_VERSION: "1.16" GO_VERSION: "1.17"
run: | run: |
git clone --depth=1 --no-checkout https://github.com/golang/go git clone --depth=1 --no-checkout https://github.com/golang/go
versionMain=$(git -C go ls-remote --tags origin | cut -f2 | sed -n "/refs\/tags\/go${GO_VERSION}\.[0-9]*$/s/^refs\/tags\/go//p" | egrep -v -e '(beta|rc)' | sort -ruV | head -1) versionMain=$(git -C go ls-remote --tags origin | cut -f2 | sed -n "/refs\/tags\/go${GO_VERSION}\.[0-9]*$/s/^refs\/tags\/go//p" | egrep -v -e '(beta|rc)' | sort -ruV | head -1)