From a84b19b9a20b40b9bdf8f122b045dabbf236e8bc Mon Sep 17 00:00:00 2001 From: jingwei wang Date: Thu, 14 Nov 2024 18:14:04 +0000 Subject: [PATCH] add node in AL2 Signed-off-by: jingwei wang --- scripts/setup-linux-runner.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/setup-linux-runner.sh b/scripts/setup-linux-runner.sh index 2cad1a5..38b31c9 100644 --- a/scripts/setup-linux-runner.sh +++ b/scripts/setup-linux-runner.sh @@ -21,6 +21,10 @@ if [ "${OS_NAME}" = "Amazon Linux" ]; then if [ "${OS_VERSION}" = "2" ]; then GH_RUNNER_DEPENDENCIES="openssl krb5-libs zlib jq" ADDITIONAL_PACKAGES="policycoreutils-python systemd-rpm-macros ${GH_RUNNER_DEPENDENCIES}" + NODE_VERSION="22.9.0" + curl -OL https://d3rnber7ry90et.cloudfront.net/linux-$(uname -m)/node-v${NODE_VERSION}.tar.gz + tar -xf node-v${NODE_VERSION}.tar.gz + mv node-v${NODE_VERSION}/bin/* /usr/bin elif [ "${OS_VERSION}" = "2023" ]; then GH_RUNNER_DEPENDENCIES="lttng-ust openssl-libs krb5-libs zlib libicu" ADDITIONAL_PACKAGES="policycoreutils-python-utils ${GH_RUNNER_DEPENDENCIES}"