Skip to content

Commit 2da7d4c

Browse files
committed
Install 64-bit Node in container, for its libraries
According to actions/checkout#334 (comment), which is aboute a different but related problem, some 64-bit libraries are missing that get keep the (it seems, existing and already mapped) Node.js outside the container from being run, and installing Node.js in the container with `apt-get` installs the necessary dependencies, allowing the (existing) Node.js to be used. Although the error is reported differently (here, the error does not say anything about `/etc/*release`, the effect where it looks like the `node` binary does not run but actually something *it* tries to run does not run, seems to be the same. So maybe this will help.
1 parent 46169e4 commit 2da7d4c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,9 @@ jobs:
152152
steps:
153153
- name: Prerequisites
154154
run: |
155+
dpkg --add-architecture amd64 # For 64-bit Node.js, for actions.
155156
apt-get update
156-
apt-get install --no-install-recommends -y build-essential ca-certificates cmake curl git jq libssl-dev nodejs pkgconf
157-
#mkdir -p /__e/node20/bin
158-
#ln -s /usr/bin/node /__e/node20/bin/node
159-
file /__e/node20/bin/node
157+
apt-get install --no-install-recommends -y build-essential ca-certificates cmake curl git jq libssl-dev nodejs:amd64 pkgconf
160158
- uses: actions/checkout@v4
161159
- uses: dtolnay/rust-toolchain@stable
162160
with:

0 commit comments

Comments
 (0)