File tree 3 files changed +19
-23
lines changed
3 files changed +19
-23
lines changed Original file line number Diff line number Diff line change @@ -151,9 +151,6 @@ jobs:
151
151
152
152
emscripten :
153
153
strategy :
154
- matrix :
155
- include :
156
- - emscripten_version : 3.1.27
157
154
fail-fast : false
158
155
runs-on : ubuntu-latest
159
156
steps :
@@ -174,25 +171,19 @@ jobs:
174
171
- name : install emscripten
175
172
shell : bash -l {0}
176
173
run : |
177
- git clone https://github.com/emscripten-core/emsdk.git
178
- cd emsdk
179
- ./emsdk install ${{ matrix.emscripten_version }}
180
- source ./emsdk_env.sh
181
-
182
- # - name: install playwright
183
- # shell: bash -l {0}
184
- # run: |
185
- # playwright install
186
-
187
- # - name: run emscripten tests
188
- # shell: bash -l {0}
189
- # run: |
190
- # cd emsdk
191
- # ./emsdk activate ${{ matrix.emscripten_version }}
192
- # source ./emsdk_env.sh
193
- # cd ..
194
- # chmod +x ./test/emscripten/test_emscripten.sh
195
- # ./test/emscripten/test_emscripten.sh
174
+ $MAMBA_EXE install -c conda-forge -c https://repo.prefix.dev/emscripten-forge-dev \
175
+ emscripten_emscripten-wasm32 --yes
176
+
177
+ - name : install playwright
178
+ shell : bash -l {0}
179
+ run : |
180
+ playwright install
181
+
182
+ - name : run emscripten tests
183
+ shell : bash -l {0}
184
+ run : |
185
+ chmod +x ./test/emscripten/test_emscripten.sh
186
+ ./test/emscripten/test_emscripten.sh
196
187
197
188
docs :
198
189
strategy :
Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ endif()
81
81
# Flags
82
82
################################################################
83
83
if (EMSCRIPTEN)
84
+ # extra flags to ensure runtime methods are exported
85
+ set (EMS"SHELL: -s EXTRA_EXPORTED_RUNTIME_METHODS=['FS','PATH','loadDynamicLibrary']" )
86
+ target_compile_options (xplugin_host INTERFACE ${EMS} )
87
+ target_link_options (xplugin_host INTERFACE ${EMS} )
88
+
84
89
# compiler flags
85
90
set_target_properties (xplugin_host PROPERTIES COMPILE_FLAGS "-s MAIN_MODULE=1" )
86
91
set_target_properties (xplugin_plugin PROPERTIES COMPILE_FLAGS "-s SIDE_MODULE=1" )
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ channels:
6
6
dependencies :
7
7
- cmake
8
8
- python
9
- - microsoft::playwright
9
+ - microsoft::playwright <= 1.50
You can’t perform that action at this time.
0 commit comments