diff options
| author | Nick Maltbie <nick.dmalt@gmail.com> | 2023-09-20 01:08:09 -0700 |
|---|---|---|
| committer | Nick Maltbie <nick.dmalt@gmail.com> | 2023-10-01 13:43:19 -0700 |
| commit | 2b4bcbb0ce69b8b7b2db226d3b01ea2134fdacfc (patch) | |
| tree | 0d30ac00e8bfa224ba4d85c378758cca188cb256 /.github/workflows | |
| parent | 0d6de7a80e328c1969c9feabaf268008764c6812 (diff) | |
| download | redot-cpp-2b4bcbb0ce69b8b7b2db226d3b01ea2134fdacfc.tar.gz | |
Added fix for javascript build for godot 4.x
Added changes to tools/javascript.py to add PFlags to fix SharedArrayBuffer memory error.
Corrected some small errors in tools/javascript.py to support new target names.
Also updated ci to include validation for web build.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e61692..b3288b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,8 +78,18 @@ jobs: run-tests: false cache-name: ios-arm64 + - name: 🌐 Web (wasm32) + os: ubuntu-20.04 + platform: javascript + artifact-name: godot-cpp-javascript-wasm32-release + artifact-path: bin/libgodot-cpp.javascript.template_release.wasm32.a + run-tests: false + cache-name: javascript-wasm32 + env: SCONS_CACHE: ${{ github.workspace }}/.scons-cache/ + EM_VERSION: 3.1.45 + EM_CACHE_FOLDER: "emsdk-cache" steps: - name: Checkout @@ -104,6 +114,13 @@ jobs: sudo apt-get update -qq sudo apt-get install -qqq build-essential pkg-config + - name: Web dependencies + if: ${{ matrix.platform == 'javascript' }} + uses: mymindstorm/setup-emsdk@v12 + with: + version: ${{env.EM_VERSION}} + actions-cache-folder: ${{env.EM_CACHE_FOLDER}} + - name: Install scons run: | python -m pip install scons==4.0.0 |
