Skip to content

Commit

Permalink
build: Install node.js via nvm
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Mar 14, 2024
1 parent cf480b7 commit 942d410
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ jobs:
run: |
sudo apt update && sudo apt install ninja-build
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '21.x'
cache: "npm"
cache-dependency-path: package-lock.json

- name: Install npm dependencies
run: npm -g install --force --include=dev

- name: Install Conan
run: |
pip install conan
Expand Down
11 changes: 11 additions & 0 deletions build-ui.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -eu

NODE_VERSION="21"
SOURCE_LOC="$1"
BUILD_DIR="${SOURCE_LOC}/build"

Expand All @@ -12,7 +13,17 @@ fi
echo "Using source dir @ $SOURCE_LOC."
cd "$SOURCE_LOC"

echo "Installing nvm"
export NVM_DIR="$(mktemp -d)"
git clone https://github.com/nvm-sh/nvm.git "${NVM_DIR}" -b v0.39.7
. "${NVM_DIR}/nvm.sh"

echo "Setting up Node.js ${NODE_VERSION}"
nvm install "${NODE_VERSION}"
nvm use "${NODE_VERSION}"

echo "Collecting npm modules."
npm -g install --force --include=dev
npm install

echo "Patching erblick-core TS definitions."
Expand Down
3 changes: 0 additions & 3 deletions conan-profiles/emscripten.profile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@ build_type=Release
[tool_requires]
emsdk/3.1.50

[replace_requires]
nodejs/*: nodejs/16.20.2

[replace_tool_requires]
nodejs/*: nodejs/16.20.2

0 comments on commit 942d410

Please sign in to comment.