From 85e821eb75899a36e7fb2727d5957434a5931bd5 Mon Sep 17 00:00:00 2001 From: Max Aller Date: Mon, 8 Jul 2024 19:45:46 -0700 Subject: [PATCH] Hack to make things work on GitHub Pages hopefully. --- .github/workflows/godot-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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: