Skip to content
Snippets Groups Projects
Commit 302426c5 authored by Éloïs's avatar Éloïs
Browse files

[build] add rust & force node version to 10.19.0

parent a1590a2f
No related branches found
No related tags found
1 merge request!1290Migrate C++ wotb to Rust dubp-wot crate
......@@ -28,8 +28,10 @@ stages:
before_script:
- export NVM_DIR="$HOME/.nvm"
- . "$NVM_DIR/nvm.sh"
- nvm install 10
- nvm use 10
- nvm install 10.19.0
- nvm use 10.19.0
- curl https://sh.rustup.rs -sSf | sh -s -- -y
- export PATH="$HOME/.cargo/bin:$PATH"
.cached_nvm: &cached_nvm
<<: *nvm_env
......
......@@ -6,7 +6,7 @@ export NVM_DIR="$HOME/.nvm"
# Prepare
NODE_VERSION=10.11.0
NODE_VERSION=10.19.0
ARCH="`uname -m | sed -e \"s/86_//\"`"
NVER="v$NODE_VERSION"
DUNITER_TAG=$1
......@@ -19,6 +19,8 @@ RELEASES="$ROOT/releases"
nvm install ${NODE_VERSION}
nvm use ${NODE_VERSION}
curl https://sh.rustup.rs -sSf | sh -s -- -y
export PATH="$HOME/.cargo/bin:$PATH"
echo "Version de NodeJS : `node -v`"
......
......@@ -118,11 +118,11 @@ build_deb_pack() {
create_desc "${BIN}/duniter-${1}-${DUNITER_TAG}-linux-x64.deb" "${1}" "Linux (Ubuntu/Debian)"
}
# -----------
# Prepare
# -----------
# ------------------------------
# Install tools needed to build
# -----------------------------
NODE_VERSION=10.11.0
NODE_VERSION=10.19.0
NVER="v${NODE_VERSION}"
DUNITER_TAG="v${1}"
DUNITER_DEB_VER=" ${1}"
......@@ -137,6 +137,8 @@ nvm install ${NVER} || exit 1
nvm use ${NVER} || exit 1
npm install -g node-pre-gyp || exit 1
npm install -g nw-gyp || exit 1
curl https://sh.rustup.rs -sSf | sh -s -- -y
export PATH="$HOME/.cargo/bin:$PATH"
# -----------
# Folders
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment