docs: use npm in setup-cpp for GitLab [skip ci]

This commit is contained in:
Amin Yahyaabadi 2023-09-11 13:52:27 -07:00
parent 9833f067a0
commit 20bb9d646a
1 changed files with 7 additions and 7 deletions

View File

@ -263,14 +263,14 @@ stages:
apt-get update -qq apt-get update -qq
apt-get install -y --no-install-recommends curl gnupg ca-certificates apt-get install -y --no-install-recommends curl gnupg ca-certificates
# keys used by apt
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
.setup-cpp: &setup-cpp | .setup-cpp: &setup-cpp |
curl -LJO "https://github.com/aminya/setup-cpp/releases/download/v0.35.6/setup-cpp-x64-linux" # install nodejs
chmod +x setup-cpp-x64-linux apt-get install -y --no-install-recommends nodejs npm
# install setup-cpp
npm install -g setup-cpp@v0.35.6
# install the compiler and tools
./setup-cpp-x64-linux --compiler $compiler --cmake true --ninja true --ccache true --vcpkg true ./setup-cpp-x64-linux --compiler $compiler --cmake true --ninja true --ccache true --vcpkg true
source ~/.cpprc source ~/.cpprc