-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for ECONNRESET http issue with npm during compilation (#216)
Signed-off-by: Dennis Meister <[email protected]>
- Loading branch information
1 parent
3b6a762
commit 1812ceb
Showing
3 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,17 +70,20 @@ jobs: | |
echo "$(jq --arg VERSION $VERSION '.version=$VERSION' package.json)" > package.json | ||
# This step is needed to install needed dependencies (node-pty) for arm based architecture | ||
# npm 9.9.3 because of http ECONNRESET issue during installation | ||
- name: Install dependencies for ARM64 | ||
if: ${{ matrix.arch == 'arm64' }} | ||
uses: uraimo/run-on-arch-action@v2 | ||
with: | ||
base_image: arm64v8/node:${{ env.NODE_VERSION }}-bullseye | ||
run: | | ||
npm install -g [email protected] | ||
npm install . | ||
- name: Install dependencies for AMD64 | ||
if: ${{ matrix.arch == 'x64' }} | ||
run: | | ||
npm install -g [email protected] | ||
npm install . | ||
- name: Compile EXE for ${{ matrix.arch }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.co | |
|
||
sudo apt-get update | ||
sudo apt-get install nodejs -y | ||
# To keep npm aligned with compilation step inside CI | ||
sudo npm install -g [email protected] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.