mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
.cirrus.yml: use Go 1.24
Also: 1. Change GO_VERSION to GO_VER_PREFIX, and move the "." from the jq argument to the variable value. It allows to use something like "1.25" to match "1.25rc" etc, but set to "1.24." for now to require a released 1.24.x version. 2. Change PREFIX to URL_PREFIX. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
+4
-4
@@ -77,7 +77,7 @@ task:
|
||||
env:
|
||||
HOME: /root
|
||||
CIRRUS_WORKING_DIR: /home/runc
|
||||
GO_VERSION: "1.23"
|
||||
GO_VER_PREFIX: "1.24."
|
||||
BATS_VERSION: "v1.9.0"
|
||||
RPMS: gcc git iptables jq glibc-static libseccomp-devel make criu fuse-sshfs container-selinux
|
||||
# yamllint disable rule:key-duplicates
|
||||
@@ -117,10 +117,10 @@ task:
|
||||
[ $? -eq 0 ] # fail if yum failed
|
||||
|
||||
# Install Go.
|
||||
PREFIX="https://go.dev/dl/"
|
||||
URL_PREFIX="https://go.dev/dl/"
|
||||
# Find out the latest minor release URL.
|
||||
filename=$(curl -fsSL "${PREFIX}?mode=json&include=all" | jq -r --arg Ver "go$GO_VERSION." '. | map(select(.version | contains($Ver))) | first | .files[] | select(.os == "linux" and .arch == "amd64" and .kind == "archive") | .filename')
|
||||
curl -fsSL "$PREFIX$filename" | tar Cxz /usr/local
|
||||
filename=$(curl -fsSL "${URL_PREFIX}?mode=json&include=all" | jq -r --arg Ver "go$GO_VER_PREFIX" '. | map(select(.version | contains($Ver))) | first | .files[] | select(.os == "linux" and .arch == "amd64" and .kind == "archive") | .filename')
|
||||
curl -fsSL "$URL_PREFIX$filename" | tar Cxz /usr/local
|
||||
# install bats
|
||||
cd /tmp
|
||||
git clone https://github.com/bats-core/bats-core
|
||||
|
||||
Reference in New Issue
Block a user