diff --git a/.github/workflows/godot-ci.yml b/.github/workflows/godot-ci.yml index 3e63896..9b7f2f3 100644 --- a/.github/workflows/godot-ci.yml +++ b/.github/workflows/godot-ci.yml @@ -32,6 +32,13 @@ jobs: mkdir -v -p build/web/ cd $PROJECT_PATH godot --headless --verbose --export-release "Web" ../build/web/index.html + # Workaround for SharedArrayBuffer support on GitHub Pages + # See: https://github.com/godotengine/godot-docs/issues/7084 + # https://github.com/godotengine/godot-proposals/issues/6616#issuecomment-1513340085 + - run: | + cd ../build/web/ + curl -fsSL https://github.com/gzuidhof/coi-serviceworker/raw/master/coi-serviceworker.js > coi-serviceworker.js + sed -i 's#\( \)# \n\1#g' index.html - name: Upload Artifact uses: actions/upload-artifact@v1 with: