Skip to content

Commit 1e56eef

Browse files
committed
ci: install latest node for Ubuntu 20 arm
1 parent da6695c commit 1e56eef

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

script/install-deps.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ if [ -n "$apt" ]; then
99
apt-get install --no-install-recommends -y \
1010
bash \
1111
build-essential \
12+
gnupg \
13+
ca-certificates \
1214
curl \
1315
git \
1416
g++ \
@@ -23,9 +25,14 @@ if [ -n "$apt" ]; then
2325
ninja-build \
2426
automake \
2527
autoconf \
26-
libtool \
27-
nodejs \
28-
npm
28+
libtool
29+
30+
# install latest nodejs
31+
mkdir -p /etc/apt/keyrings
32+
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
33+
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
34+
apt-get update -qq
35+
apt-get install -y --no-install-recommends nodejs
2936
fi
3037

3138
# Alpine Linux

0 commit comments

Comments
 (0)