Skip to content

Commit b05a0ca

Browse files
authored
Merge pull request #42 from yuchanns/fix/platform-wasm
fix(platform/wasm): compatible for lower version of Safari browser
2 parents 6eb1cdd + 1db8ff0 commit b05a0ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ jobs:
154154
overwrite: "true"
155155
- uses: mymindstorm/setup-emsdk@v14
156156
if: runner.os == 'Linux'
157+
with:
158+
version: 4.0.17
159+
actions-cache-folder: 'emsdk-cache'
157160
- name: Build Emscripten
158161
if: runner.os == 'Linux'
159162
shell: bash
@@ -167,6 +170,7 @@ jobs:
167170
SOLUNA_JS_PATH=$(find bin -name $SOLUNA_JS | head -n 1)
168171
echo "SOLUNA_BINARY=$SOLUNA_PATH" >> $GITHUB_OUTPUT
169172
echo "SOLUNA_JS=$SOLUNA_JS_PATH" >> $GITHUB_OUTPUT
173+
sed -i 's/setBindGroup(groupIndex,group,(growMemViews(),HEAPU32),dynamicOffsetsPtr>>2,dynamicOffsetCount)/setBindGroup(groupIndex,group,(growMemViews(),HEAPU32).subarray(dynamicOffsetsPtr>>2,(dynamicOffsetsPtr>>2)+dynamicOffsetCount))/g' "$SOLUNA_JS_PATH"
170174
- uses: actions/upload-artifact@v4
171175
name: Upload Emscripten
172176
if: (github.event_name == 'workflow_dispatch' || github.event_name == 'schedule') && runner.os == 'Linux'

0 commit comments

Comments
 (0)