web nothreads support

This commit is contained in:
cosformula 2024-07-30 09:40:48 +08:00 committed by GitHub
parent 0e059c8a52
commit 272d1c1c39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 21 additions and 2 deletions

View File

@ -95,6 +95,7 @@ jobs:
platform: web platform: web
target: template_release target: template_release
arch: wasm32 arch: wasm32
threads: yes
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
- name: 🌐 Web (wasm32, debug) - name: 🌐 Web (wasm32, debug)
@ -102,6 +103,24 @@ jobs:
platform: web platform: web
target: template_debug target: template_debug
arch: wasm32 arch: wasm32
threads: yes
should-build: ${{ !inputs.test-build }}
- name: 🌐 Web (wasm32, release, nothreads)
runner: ubuntu-20.04
platform: web
target: template_release
arch: wasm32
threads: no
should-build: ${{ !inputs.test-build }}
- name: 🌐 Web (wasm32, debug, nothreads)
runner: ubuntu-20.04
platform: web
target: template_debug
arch: wasm32
threads: no
should-build: ${{ !inputs.test-build }} should-build: ${{ !inputs.test-build }}
- name: 🤖 Android (arm64, release) - name: 🤖 Android (arm64, release)
@ -272,7 +291,7 @@ jobs:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/ SCONS_CACHE: ${{github.workspace}}/.scons_cache/
run: | run: |
PATH=${GITHUB_WORKSPACE}/buildroot/bin:$PATH PATH=${GITHUB_WORKSPACE}/buildroot/bin:$PATH
scons platform=${{matrix.opts.platform}} target=${{matrix.opts.target}} arch=${{matrix.opts.arch}} ${{env.SCONSFLAGS}} scons platform=${{matrix.opts.platform}} target=${{matrix.opts.target}} arch=${{matrix.opts.arch}} thread=${{matrix.opts.threads}} ${{env.SCONSFLAGS}}
- name: Prepare artifact - name: Prepare artifact
shell: bash shell: bash
@ -303,7 +322,7 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
env: env:
NAME: tmp-gdextension.${{matrix.opts.platform}}.${{matrix.opts.target}}.${{matrix.opts.arch}} NAME: tmp-gdextension.${{matrix.opts.platform}}.${{matrix.opts.target}}.${{matrix.opts.arch}}.threads_${{matrix.opts.threads}}
with: with:
name: ${{ env.NAME }} name: ${{ env.NAME }}
path: out/* path: out/*