GHA: Add web build to GDExtension workflow

This commit is contained in:
Serhii Snitsaruk 2024-02-14 20:33:52 +01:00
parent a60280ccfb
commit 58ff47d688
1 changed files with 10 additions and 4 deletions

View File

@ -85,8 +85,15 @@ jobs:
arch: universal arch: universal
should-build: true should-build: true
- name: 🌐 Web (wasm32, release)
runner: ubuntu-20.04
platform: web
target: template_release
arch: wasm32
should-build: true
exclude: exclude:
- { opts: {should-build: false }} - { opts: { should-build: false } }
env: env:
BIN: liblimboai.${{matrix.opts.platform}}.${{matrix.opts.target}}.${{matrix.opts.arch}} BIN: liblimboai.${{matrix.opts.platform}}.${{matrix.opts.target}}.${{matrix.opts.arch}}
@ -134,8 +141,8 @@ jobs:
if: matrix.opts.platform == 'windows' || matrix.opts.platform == 'macos' if: matrix.opts.platform == 'windows' || matrix.opts.platform == 'macos'
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: '3.x' python-version: "3.x"
architecture: 'x64' architecture: "x64"
- name: Set up scons - name: Set up scons
if: matrix.opts.platform == 'windows' || matrix.opts.platform == 'macos' if: matrix.opts.platform == 'windows' || matrix.opts.platform == 'macos'
@ -168,7 +175,6 @@ jobs:
echo "---" echo "---"
ls -l -R ./demo/ ls -l -R ./demo/
- name: Compilation - name: Compilation
shell: bash shell: bash
env: env: