Skip to content

Commit

Permalink
Update CI workflow npm installation
Browse files Browse the repository at this point in the history
Specify npm_config_build_from_source to build from source.

Otherwise, an existing prebuilt binary will be downloaded instead
  • Loading branch information
dhritzkiv committed Jan 10, 2025
1 parent c16e31e commit 6eb0945
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
libglew-dev libglu1-mesa-dev libosmesa6
libxi-dev mesa-utils pkg-config
- run: npm ci
env:
npm_config_build_from_source: true
# npm_config_build_from_source is used to force npm post install scripts to build native modules from source instead of downloading prebuilt binaries.
- run: npm run build --if-present
- if: runner.os == 'Linux'
run: xvfb-run npm test
Expand Down

0 comments on commit 6eb0945

Please sign in to comment.