Skip to content

Commit 7e55c07

Browse files
authored
Merge pull request #1696 from Shaikh-Ubaid/ci_fix_build_to_wasm2
CI: Fix build_to_wasm failure
2 parents a1504ac + 721c6d4 commit 7e55c07

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/CI.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ jobs:
133133
variant: sccache
134134
key: ${{ github.job }}-${{ matrix.os }}
135135

136+
- name : Remove existing node
137+
shell: bash -l {0}
138+
run : |
139+
which node
140+
node -v
141+
sudo rm -rf /usr/local/bin/node /usr/local/bin/npm
142+
136143
- name: Install Emscripten from Git
137144
shell: bash -l {0}
138145
run: |
@@ -142,20 +149,20 @@ jobs:
142149
git clone https://github.com/emscripten-core/emsdk.git
143150
cd emsdk
144151
145-
# Download and install the latest SDK tools.
146-
./emsdk install latest
152+
./emsdk install 3.1.35
147153
148-
# Make the "latest" SDK "active" for the current user. (writes .emscripten file)
149-
./emsdk activate latest
154+
./emsdk activate 3.1.35
150155
151-
- name: Show Emscripten Info
156+
- name: Show Emscripten and Node Info
152157
shell: bash -l {0}
153158
run: |
154159
set -ex
155160
# Activate PATH and other environment variables in the current terminal
156161
source $HOME/ext/emsdk/emsdk_env.sh
157162
emcc -v
158163
em++ -v
164+
which node
165+
node -v
159166
160167
- name: Build to WASM
161168
shell: bash -l {0}
@@ -170,4 +177,6 @@ jobs:
170177
run: |
171178
set -ex
172179
source $HOME/ext/emsdk/emsdk_env.sh # Activate Emscripten
180+
which node
181+
node -v
173182
node src/lpython/tests/test_lpython.js

0 commit comments

Comments
 (0)